diff options
| author | Michael Williamson <mike@zwobble.org> | 2024-03-16 17:48:54 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2024-03-16 18:07:28 +0000 |
| commit | d402f44dfba4d056eff1778f38bd03a8cb9ba2f4 (patch) | |
| tree | 556e63dc1cc8ddd57a075bbc0dea6b32e6bbd2a8 /.github | |
| parent | dec5085ac7a4dcf926c8af14c5e4e4bd73a04448 (diff) | |
Build macOS arm64 wheels on GitHub Actions instead of Cirrus CI
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/build.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b34df2a..c544db7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -140,3 +140,38 @@ jobs: if: ${{ (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')) || matrix.cibw-only == 'cp310-manylinux_x86_64' }} with: path: ./wheelhouse/*.whl + + build_wheels_macosx_arm64: + name: Build macOS arm64 wheels + + runs-on: macos-14 + + steps: + + - uses: actions/checkout@v4 + + - name: Use Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Print build identifiers + run: | + python -m pip install cibuildwheel==2.17.0 + CIBW_SKIP=cp38-macosx_arm64 python -m cibuildwheel --print-build-identifiers + + - name: Build wheels + if: ${{ (github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')) }} + uses: pypa/cibuildwheel@v2.17.0 + env: + CIBW_SKIP: cp38-macosx_arm64 + + - name: Build wheels + if: ${{ !(github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')) }} + uses: pypa/cibuildwheel@v2.17.0 + with: + only: cp310-macosx_arm64 + + - uses: actions/upload-artifact@v4 + with: + path: ./wheelhouse/*.whl |
