Add GitHub workflow script to build Python wheels. Update PyPI package
This commit is contained in:
31
.github/workflows/wheels.yml
vendored
Normal file
31
.github/workflows/wheels.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
name: Build New Wheels
|
||||
on: [workflow_dispatch]
|
||||
jobs:
|
||||
build_wheels:
|
||||
name: Build wheels on ${{ matrix.os }}
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macOS-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- uses: actions/setup-python@v2
|
||||
|
||||
- name: Install cibuildwheel
|
||||
run: python -m pip install cibuildwheel==1.10.0
|
||||
|
||||
- name: Build wheels
|
||||
env:
|
||||
CIBW_ARCHS: auto
|
||||
CIBW_BUILD: cp35-* cp36-* cp37-* cp38-* cp39-*
|
||||
CIBW_BEFORE_BUILD: ln -s $(pwd) pkg/pypi/native; cp -f src/bindings/python/*.py pkg/pypi/libzt/; cd pkg/pypi; python setup.py build_clib
|
||||
run: |
|
||||
python -m cibuildwheel pkg/pypi --output-dir wheelhouse
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
with:
|
||||
path: wheelhouse/*.whl
|
||||
Reference in New Issue
Block a user