Skip to content

Build Linux aarch64 wheels in the "Build and Publish Python Package" workflow#865

Merged
johnbartholomew merged 1 commit intogoogle:masterfrom
projectsyn:ci/python-linux-aarch64-wheels
Mar 23, 2026
Merged

Build Linux aarch64 wheels in the "Build and Publish Python Package" workflow#865
johnbartholomew merged 1 commit intogoogle:masterfrom
projectsyn:ci/python-linux-aarch64-wheels

Conversation

@simu
Copy link
Contributor

@simu simu commented Mar 19, 2026

Summary

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 actually work, the PR extends the .github/workflows/install-go.sh helper to download the Go compiler for the detected architecture. The architecture switching currently supports x86_64 (amd64) and aarch64 (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/arm64 container image currently introduces additional complexity because we need to build go-jsonnet from source for linux/arm64 only. 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

…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.
@johnbartholomew
Copy link
Collaborator

Looks like a nice addition. Thanks!

@johnbartholomew johnbartholomew merged commit 86c6dc1 into google:master Mar 23, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants