Skip to content

Pip package

Pip package #58

Workflow file for this run

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