From 9e0adc299ab21ccea17b7e21312ddf138688c4b1 Mon Sep 17 00:00:00 2001 From: Ales Erjavec Date: Wed, 1 Feb 2023 13:21:07 +0100 Subject: [PATCH] CI: Add cirrus ci config for building apple arm64 wheels --- .cirrus.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .cirrus.yml 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