Fixed license spec for older python, update build_wheels #121
This file contains hidden or 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 Wheels | |
| on: | |
| push: | |
| tag: | |
| - '*' | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build_wheels: | |
| name: Build wheels on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| CIBW_SKIP: "*-win32 *-manylinux_i686 *musllinux*" | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, windows-11-arm, macOS-13, macOS-14] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Build wheels | |
| uses: pypa/cibuildwheel@v3.1.4 | |
| # to supply options, put them in 'env', like: | |
| env: | |
| CIBW_SKIP: "*-win32 *-manylinux_i686 *musllinux*" | |
| CIBW_TEST_REQURES: pytest, numpy | |
| CIBW_BEFORE_TEST: python -m pip install pytest | |
| CIBW_TEST_COMMAND: python -m pytest {package}/tests | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }} | |
| path: ./wheelhouse/*.whl |