release: build aarch64 Linux binaries and wheels (#21)#30
Merged
congwang-mk merged 1 commit intomainfrom May 1, 2026
Merged
Conversation
Signed-off-by: Cong Wang <cwang@multikernel.io>
5366976 to
a423adc
Compare
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
Closes the only real packaging gap behind #21: aarch64 Linux. The reporter's "no prebuilt binary" framing was a misread —
release.ymlalready publishessandlock-x86_64-unknown-linux-gnu.tar.gzto GitHub Releases on everyv*tag (43 downloads on v0.6.0). What was missing is the aarch64 counterpart, plus aarch64 manylinux wheels.This PR extends the existing matrix without restructuring the workflow:
buildjob — addsaarch64-unknown-linux-gnurunning onubuntu-24.04-arm. Native build, no QEMU, nocross. x86_64 stays onubuntu-22.04so its glibc 2.35 floor is unchanged.wheelsjob — splits into a 2-element matrix so each arch builds natively. cibuildwheel under QEMU is 5–10× slower for Rust, and ARM runners are free for public repos.publish-pypijob — switches the wheels download topattern: wheels-*+merge-multiple: truesince artifact names are now arch-suffixed.Result on the next tagged release:
sandlock-x86_64-unknown-linux-gnu.tar.gz(unchanged)sandlock-aarch64-unknown-linux-gnu.tar.gz(new)cp3{10,11,12,13}-manylinux_x86_64wheels (unchanged)cp3{10,11,12,13}-manylinux_aarch64wheels (new)Caveats
ubuntu-24.04-armis the only ARM runner used elsewhere in this repo (ci.yml), so I matched it. That excludes Debian 12 / RHEL 9 / Ubuntu 22.04 aarch64. If that matters, follow-ups: switch toubuntu-22.04-armonce verified, or addaarch64-unknown-linux-muslfor a fully-static fallback.Test plan
workflow_dispatchon this branch — confirm bothbuildmatrix legs succeed and produce the expected tarballs as workflow artifacts.wheelsmatrix legs produce wheels named*manylinux_x86_64*.whland*manylinux_aarch64*.whl.github-release'sartifacts/**/*.tar.gzglob still picks up both binary tarballs (it should — sdist already worked the same way).pip install sandlockfrom a fresh aarch64 host (e.g. AWS Graviton) installs the aarch64 wheel and exits withoutcommand not foundforsandlock-mcp.tar -xzf sandlock-aarch64-unknown-linux-gnu.tar.gz && ./sandlock --versionworks on an aarch64 Linux box with glibc ≥ 2.39.🤖 Generated with Claude Code