Skip to content

Commit

Permalink
Build macOS arm64 wheels on GitHub Actions instead of Cirrus CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilliamson committed Mar 16, 2024
1 parent dec5085 commit d402f44
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 25 deletions.
25 changes: 0 additions & 25 deletions .cirrus.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d402f44

Please sign in to comment.