Repository navigation
ci: build aarch64 and armv7l wheels on native ARM runners - #248
Merged
Merged
Conversation
GitHub now provides public hosted Linux ARM64 runners (`ubuntu-24.04-arm`), so the aarch64 wheel build no longer needs to run under QEMU emulation on x86_64. The armv7l build also moves to the same aarch64 host; QEMU stays registered so binfmt picks up the 32-bit ARM userspace handler whether or not the host kernel has CONFIG_COMPAT enabled, and even with emulation aarch64-on-aarch64 is far cheaper than the previous aarch64-on-x86_64 path. The ppc64le, s390x, and riscv64 builds keep their ubuntu-latest + QEMU setup since there are no native GH-hosted runners for those. The matrix gains an `include:` block that overrides `runner-vm-os` and a `native-arch` flag per arch; each (qemu, tag) combo is listed explicitly so the include unambiguously augments the existing matrix cell rather than relying on the partial-key merge behaviour of `matrix.include`. The reusable build-wheel workflow gains a `native-arch` boolean input that gates the QEMU setup step while still letting the cross-arch environment step set `CIBW_ARCHS_LINUX` and `CIBW_BUILD_FRONTEND=build` (the latter is needed on native aarch64 too because the manylinux/musllinux odd-arch container images are the same image regardless of host).
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #248 +/- ##
=======================================
Coverage 99.54% 99.54%
=======================================
Files 10 10
Lines 439 439
Branches 17 17
=======================================
Hits 437 437
Misses 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What do these changes do?
Move the aarch64 and armv7l legs of the release wheel matrix off the
x86_64 QEMU path and onto GitHub's public
ubuntu-24.04-armhostedrunner. aarch64 now builds natively with no emulation. armv7l still
gets
docker/setup-qemu-actionso binfmt registers a 32-bit ARMhandler whether or not the host kernel ships
CONFIG_COMPAT; evenunder emulation, running on an aarch64 host is far cheaper than the
previous aarch64-on-x86_64 layout.
ppc64le, s390x, and riscv64 keep the
ubuntu-latest+ QEMU setupsince there are no native GH-hosted runners for those.
The matrix gains an
include:block that overridesrunner-vm-osand a
native-archflag per arch; each(qemu, tag)combo islisted explicitly so the include unambiguously augments the existing
matrix cell rather than relying on the partial-key merge behaviour of
matrix.include. The reusablereusable-build-wheel.ymlgains anative-archboolean input that gates theSet up QEMUstepwhile keeping the cross-arch environment step (
CIBW_ARCHS_LINUXand
CIBW_BUILD_FRONTEND=build) running on native ARM runs too,because the manylinux/musllinux odd-arch container images are the
same regardless of host.
Ports aio-libs/yarl#1724 to propcache.
Are there changes in behavior for the user?
No. Wheels are still built for the same architectures and tags; only
the host that builds them changes. Release CI time on the aarch64
leg should drop from roughly 40 minutes to a few minutes.
Related issue number
N/A; ports aio-libs/yarl#1724.
Checklist
N/A (CI-only change)N/A (no user-facing docs)CHANGES/folderAgent run details (optional, for reviewers)
Drafted with Claude Code (claude-opus-4-7); reviewed by @bdraco.
Local validation:
python -c "yaml.safe_load(...)"confirms both workflow files parse cleanly, including the matrixinclude:shape and the${{ matrix.runner-vm-os || 'ubuntu-latest' }}/${{ matrix.native-arch && true || false }}expressions.make doc-spellingreports only the 2 pre-existing misspellings onmaster(subdirectoryinCHANGES/207.contrib.rstandpostfixinCHANGES.rst:168). The new fragment introducesaarchandarmv, both added todocs/spelling_wordlist.txt.Not validated locally: actual native-ARM cibuildwheel run. The runner label and matrix wiring look correct, but the real proof is the first CI run on this branch.