Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

docs for native arm building on circleci #1307

Merged
merged 5 commits into from
Oct 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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