From a7f1e3d19528dc67e421fd55122db6bdd08f2f9c Mon Sep 17 00:00:00 2001 From: Ales Erjavec Date: Mon, 23 Jan 2023 15:29:27 +0100 Subject: [PATCH 1/2] CI: Add macos arm64 wheels to release build --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d2dc65674..b9eea42b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,6 +57,7 @@ jobs: uses: pypa/cibuildwheel@v2.7.0 env: CIBW_SKIP: pp* + CIBW_ARCHS_MACOS: "x86_64 arm64" - name: Store wheel artifacts uses: actions/upload-artifact@v3 From 12c06e6ed2376580a6c7ec8c6608cc770d2c849c Mon Sep 17 00:00:00 2001 From: Ales Erjavec Date: Wed, 1 Feb 2023 13:21:07 +0100 Subject: [PATCH 2/2] CI: Add cirrus ci config for building apple arm64 wheels [actions skip] --- .cirrus.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .cirrus.yml diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 000000000..3c2708a07 --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,22 @@ +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/libexec/bin:$PATH + matrix: + - env: + 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