update cibuildwheel to v2.23.3 (#638) #145
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: | |
| branches: [main] | |
| create: | |
| workflow_dispatch: | |
| jobs: | |
| build_wheels: | |
| strategy: | |
| matrix: | |
| # macos-13 is for intel | |
| os: ["ubuntu-24.04", "ubuntu-24.04-arm", "windows-latest", "macos-13", "macos-latest"] | |
| runs-on: ${{ matrix.os }} | |
| name: Build wheels on ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.x" | |
| cache: "pip" | |
| - name: Cythonize | |
| shell: bash | |
| run: | | |
| pip install -r requirements.txt | |
| make cython | |
| - name: Build | |
| uses: pypa/[email protected] | |
| env: | |
| CIBW_TEST_REQUIRES: "pytest" | |
| CIBW_TEST_COMMAND: "pytest {package}/test" | |
| CIBW_SKIP: "pp* cp38-macosx_*" | |
| - name: Build sdist | |
| if: runner.os == 'Linux' | |
| run: | | |
| pip install build | |
| python -m build -s -o wheelhouse | |
| - name: Upload Wheels to artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: wheels-${{ matrix.os }} | |
| path: wheelhouse |