From ea535dca43648b4b8e288a71de6b8f0bf2a53fe7 Mon Sep 17 00:00:00 2001 From: Min RK Date: Wed, 12 Oct 2022 09:23:58 +0200 Subject: [PATCH] add native arm builds to circleci-minimal example --- examples/circleci-minimal.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/examples/circleci-minimal.yml b/examples/circleci-minimal.yml index e42df8d6..796daa27 100644 --- a/examples/circleci-minimal.yml +++ b/examples/circleci-minimal.yml @@ -16,6 +16,23 @@ jobs: - store_artifacts: path: wheelhouse/ + linux-aarch64-wheels: + working_directory: ~/linux-aarch64-wheels + machine: + image: ubuntu-2004:2022.04.1 + # resource_class is what tells CircleCI to use an ARM worker for native arm builds + # https://circleci.com/product/features/resource-classes/ + resource_class: arm.medium + steps: + - checkout + - run: + name: Build the Linux aarch64 wheels. + command: | + python3 -m pip install --user cibuildwheel==2.10.2 + python3 -m cibuildwheel --output-dir wheelhouse + - store_artifacts: + path: wheelhouse/ + osx-wheels: working_directory: ~/osx-wheels macos: @@ -35,4 +52,5 @@ workflows: all-tests: jobs: - linux-wheels + - linux-aarch64-wheels - osx-wheels