-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add cirrus ci config for building apple arm64 wheels
- Loading branch information
1 parent
a7f1e3d
commit 9e0adc2
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
macos_arm64_wheel_task: | ||
# only_if: $CIRRUS_TAG =~ 'v.*' | ||
macos_instance: | ||
image: ghcr.io/cirruslabs/macos-monterey-xcode | ||
env: | ||
CIBW_TEST_COMMAND: pytest --pyargs bottleneck | ||
CIBW_TEST_REQUIRES: pytest | ||
CIBW_BUILD_VERBOSITY: 1 | ||
PATH: /opt/homebrew/opt/[email protected]/bin:$PATH | ||
matrix: | ||
- env: | ||
# cibuildwheel can not test on Python 3.8 even on a Apple Silicon machine. | ||
# For details see: https://github.com/pypa/cibuildwheel/pull/1169 | ||
CIBW_BUILD: cp{39,310,311}-macosx_arm64 | ||
|
||
prerequisites_script: | ||
- brew install [email protected] | ||
- python -m pip install cibuildwheel | ||
|
||
cibuildwheel_script: | ||
- python -m cibuildwheel ./ | ||
|
||
wheels_artifacts: | ||
path: "wheelhouse/*" |