Build Linux aarch64 wheels in the "Build and Publish Python Package" workflow#865
Merged
johnbartholomew merged 1 commit intogoogle:masterfrom Mar 23, 2026
Conversation
…ch64 wheels Build Linux aarch64 wheels by extending the build_wheels job in the workflow to also run on an `ubuntu-22.04-arm` runner. In order for this to work, the commit also extends the `install-go.sh` helper architecture aware.
Collaborator
|
Looks like a nice addition. Thanks! |
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 Linux aarch64 wheels by extending the
build_wheelsjob in the workflow to also run on anubuntu-22.04-armrunner. In order for this to actually work, the PR extends the.github/workflows/install-go.shhelper to download the Go compiler for the detected architecture. The architecture switching currently supportsx86_64(amd64) andaarch64(arm64).Rationale
We're starting to use our Python project which imports go-jsonnet (projectsyn/commodore) on Linux aarch64 (arm64) platforms (Kubernetes nodes and Docker on macOS), but building the
linux/arm64container image currently introduces additional complexity because we need to build go-jsonnet from source forlinux/arm64only. It would be very convenient for us if go-jsonnet would publish Linux aarch64 wheels going forward.Comments
I've tested this change on our fork, cf. https://github.com/projectsyn/go-jsonnet/actions/runs/23288542112?pr=2