Pip package #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build GKLS | |
on: | |
push: | |
branches: [ "main", "dev", "opti"] | |
tags: | |
- 'v*' | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: | |
build-x86-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt-get install python3 | |
sudo apt-get install -y python3-dev | |
python -m pip install --upgrade pip | |
python -m pip install build | |
# Runs a single command using the runners shell | |
- name: Install gkls | |
run: | | |
python -m build --sdist --wheel | |
- name: Upload artifact | |
uses: actions/upload-artifact@master | |
with: | |
name: linux-artifact | |
path: | | |
dist/*.whl | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
body: "Release ${{ github.ref }}" | |
files: | | |
dist/*.whl | |
# build-arm-macos: | |
# runs-on: macos-latest | |
# needs: build-x86-linux | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - name: Install dependencies | |
# run: | | |
# brew uninstall python --ignore-dependencies | |
# brew cleanup python | |
# python -m pip install --upgrade pip | |
# python -m pip install build | |
# - name: Build GKLS | |
# run: | | |
# python -m build --sdist --wheel | |
# - name: Download artifact | |
# uses: actions/download-artifact@master | |
# with: | |
# name: linux-artifact | |
# - name: Release | |
# uses: softprops/action-gh-release@v2 | |
# if: startsWith(github.ref, 'refs/tags/') | |
# with: | |
# body: "Release ${{ github.ref }}" | |
# files: | | |
# dist/*.whl |