|
| 1 | +name:Build Wheel Linux |
| 2 | + |
| 3 | +on: |
| 4 | +push: |
| 5 | +branches: |
| 6 | + -main |
| 7 | + -'releases/**' |
| 8 | + |
| 9 | +jobs: |
| 10 | +build_wheels: |
| 11 | +name:Build wheels on ${{ matrix.os }} |
| 12 | +runs-on:${{ matrix.os }} |
| 13 | +strategy: |
| 14 | +matrix: |
| 15 | +os:[ubuntu-latest] |
| 16 | + |
| 17 | +steps: |
| 18 | + -uses:actions/checkout@v3 |
| 19 | + |
| 20 | +# Used to host cibuildwheel |
| 21 | + -uses:actions/setup-python@v4 |
| 22 | +with: |
| 23 | +python-version:'3.10' |
| 24 | + |
| 25 | + -name:Install cibuildwheel |
| 26 | +run:python -m pip install cibuildwheel |
| 27 | + |
| 28 | + -name:python version |
| 29 | +run:python -V |
| 30 | + |
| 31 | + -name:Build wheels |
| 32 | +run:python -m cibuildwheel --output-dir wheelhouse |
| 33 | +# to supply options, put them in 'env', like: |
| 34 | +#env: |
| 35 | +# # CIBW_BUILD: "cp310* cp311*" |
| 36 | +# CIBW_SKIP: cp36-* cp37-* cp38-* cp39-* |
| 37 | + |
| 38 | + -uses:actions/upload-artifact@v3 |
| 39 | +with: |
| 40 | +path:./wheelhouse/*.whl |