Skip to content

Commit

Permalink
Merge pull request #1307 from minrk/circle-aarch64
Browse files Browse the repository at this point in the history
docs for native arm building on circleci
  • Loading branch information
joerick authored Oct 13, 2022
2 parents d7f615a + 4c30621 commit bea8df9
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
21 changes: 21 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,30 @@ jobs:
command: venv/bin/python ./bin/run_tests.py
no_output_timeout: 30m

linux-aarch64:
machine:
image: ubuntu-2004:2022.04.1
resource_class: arm.medium
environment:
PYTHON: python3
# Temporarily restrict the tests that are run on CircleCI to prevent
# test timeouts.
PYTEST_ADDOPTS: -k "unit_test or main_tests or test_0_basic or test_docker_images"
steps:
- checkout

- run:
name: Prepare the environment.
command: bash .circleci/prepare.sh
- run:
name: Test.
command: venv/bin/python ./bin/run_tests.py
no_output_timeout: 30m

workflows:
version: 2
all-tests:
jobs:
- osx-python3.9
- linux-python3.9
- linux-aarch64
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Usage
| Azure Pipelines |||| | ✅² | ✅⁴ |
| Travis CI || ||| | |
| AppVeyor |||| | ✅² | ✅⁴ |
| CircleCI ||| | | ✅² | |
| CircleCI ||| | | ✅² | |
| Gitlab CI || || ✅¹ | | |
| Cirrus CI || ✅³ |||| |

Expand Down
6 changes: 4 additions & 2 deletions docs/data/projects.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,13 @@

- name: pyzmq
gh: zeromq/pyzmq
ci: [github]
ci: [github, circleci]
os: [windows, apple, linux]
ci_config: .github/workflows/wheels.yml
notes: |
Python bindings for zeromq, the networking library. Uses Cython and CFFI.
Python bindings for zeromq, the networking library.
Uses Cython on CPython and CFFI on PyPy.
ARM wheels for linux are built natively on CircleCI.
- name: python-rapidjson
gh: python-rapidjson/python-rapidjson
Expand Down
18 changes: 18 additions & 0 deletions examples/circleci-minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -35,4 +52,5 @@ workflows:
all-tests:
jobs:
- linux-wheels
- linux-aarch64-wheels
- osx-wheels

0 comments on commit bea8df9

Please sign in to comment.