diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 000000000..5c187525c --- /dev/null +++ b/.cirrus.yml @@ -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/python@3.10/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 python@3.10 + - python -m pip install cibuildwheel + + cibuildwheel_script: + - python -m cibuildwheel ./ + + wheels_artifacts: + path: "wheelhouse/*" \ No newline at end of file