Skip to content

Commit ea535dc

Browse files
committed
add native arm builds to circleci-minimal example
1 parent 344d3e5 commit ea535dc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

examples/circleci-minimal.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,23 @@ jobs:
1616
- store_artifacts:
1717
path: wheelhouse/
1818

19+
linux-aarch64-wheels:
20+
working_directory: ~/linux-aarch64-wheels
21+
machine:
22+
image: ubuntu-2004:2022.04.1
23+
# resource_class is what tells CircleCI to use an ARM worker for native arm builds
24+
# https://circleci.com/product/features/resource-classes/
25+
resource_class: arm.medium
26+
steps:
27+
- checkout
28+
- run:
29+
name: Build the Linux aarch64 wheels.
30+
command: |
31+
python3 -m pip install --user cibuildwheel==2.10.2
32+
python3 -m cibuildwheel --output-dir wheelhouse
33+
- store_artifacts:
34+
path: wheelhouse/
35+
1936
osx-wheels:
2037
working_directory: ~/osx-wheels
2138
macos:
@@ -35,4 +52,5 @@ workflows:
3552
all-tests:
3653
jobs:
3754
- linux-wheels
55+
- linux-aarch64-wheels
3856
- osx-wheels

0 commit comments

Comments
 (0)