Add build and release

This commit is contained in:
Andrei Betlen 2023-04-10 01:29:32 -04:00
parent a984f55d79
commit 8594b8388e

View file

@ -1,9 +1,6 @@
name: Build
name: Build Release
on: workflow_dispatch
# push:
# branches:
# - main
jobs:
build_wheels:
@ -11,7 +8,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, windows-2019, macOS-11]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
@ -30,10 +27,26 @@ jobs:
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
# to supply options, put them in 'env', like:
# env:
# CIBW_SOME_OPTION: value
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: "true"
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
python -m pip install --upgrade pip pytest cmake scikit-build setuptools
- name: Build source distribution
run: |
python setup.py sdist
- uses: actions/upload-artifact@v3
with:
path: ./dist/*.tar.gz