ci(python): build aarch64 wheels on native ubuntu-24.04-arm#1495
Merged
Conversation
The auto manylinux container's cross-compile toolchain has had two distinct breakages in a row when building the linux/aarch64 wheel: - v0.2.0: aws-lc-sys 0.39.1 required AT_HWCAP2, but the cross sysroot ships glibc 2.17 (manylinux2014) which is missing it. - v0.2.1: after switching rustls to ring (#1493) to drop aws-lc-sys, ring's aarch64 .S assembler fails with `ARM assembler must define __ARM_ARCH` because the cross gcc doesn't predefine it. Both are cross-compile-toolchain gaps, not bugs in our code or the crypto crates. Building the aarch64 wheels on a native arm64 runner sidesteps the entire class -- maturin sees host==target and never involves the cross gcc. publish-js.yml already uses ubuntu-24.04-arm for its aarch64 NAPI binding (see specs/release-process.md JS native binding matrix). Apply the same fix to both linux/aarch64 wheel rows -- manylinux auto and musllinux_1_1.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bashkit | 462d577 | Commit Preview URL Branch Preview URL |
Apr 30 2026, 05:59 PM |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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.
Summary
Build aarch64 Python wheels on a native
ubuntu-24.04-armrunner instead of cross-compiling from x86_64 inside the manylinux container.The cross-compile path has now broken our publish twice in a row, each time on a different transitive C dep:
aws-lc-sys 0.39.1referencesAT_HWCAP2, missing from the manylinux2014 cross sysroot's glibc 2.17 headers.aws-lc-sys, and ring's aarch64.Sfiles now fail to compile witherror: ARM assembler must define __ARM_ARCHbecause the crossaarch64-linux-gnu-gccdoesn't predefine the macro.Both are cross-compile-toolchain gaps, not bugs in our code or the crypto crates. The clean fix is to build natively: maturin sees
host == targetand never involves the cross gcc.publish-js.ymlalready usesubuntu-24.04-armfor its aarch64 NAPI binding (see the JS native binding matrix inspecs/release-process.md); this brings the Python wheel build in line.Change
- os: linux target: aarch64 - runs-on: ubuntu-latest + runs-on: ubuntu-24.04-arm - os: linux target: aarch64 manylinux: musllinux_1_1 - runs-on: ubuntu-latest + runs-on: ubuntu-24.04-armCommit message has the full background.
Test plan
workflow_dispatchpublish-python.ymlagainstmain. The workflow checks out main whereCargo.tomlis already at0.2.1, so the wheels built will bebashkit-0.2.1-*.whl. PyPI trusted publishing then uploads v0.2.1.pip index versions bashkitshows0.2.1Generated by Claude Code