Repository navigation
Conversation
Building each release tool natively needs a GitHub runner per platform. Cross-compiling on a Linux x86_64 runner instead lets us add platforms that lack GitHub runners, e.g. other Linux CPUs, as suggested in bazel-contrib#4217's review. The Linux aarch64 job now runs on an x86_64 runner and cross-compiles for musl (aarch64-unknown-linux-musl) instead of glibc. Rust links musl statically with its bundled rust-lld, so the build needs just a dev-only Rust toolchain, not a C cross toolchain. macOS and Windows files need those OSes' SDKs, so their jobs still build natively, and Linux x86_64 keeps its static glibc build. build.sh now takes the job's target triple and builds for the matching platform in dev/platforms, so the workflow skips older refs without it. release_files still picks the release flags, now from the platform's OS and libc. verify.sh also checks the CPU of Linux files, since one is now cross-compiled. Work towards bazel-contrib#4216
aignas
approved these changes
Oct 11, 2026
This branch has not been deployed
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.
Building each release tool natively needs a GitHub runner per
platform. Cross-compiling on a Linux x86_64 runner instead lets us
add platforms that lack GitHub runners, e.g. other Linux CPUs, as
suggested in #4217's review.
The Linux aarch64 job now runs on an x86_64 runner and cross-compiles
for musl (aarch64-unknown-linux-musl) instead of glibc. Rust links
musl statically with its bundled rust-lld, so the build needs just a
dev-only Rust toolchain, not a C cross toolchain. macOS and Windows
files need those OSes' SDKs, so their jobs still build natively, and
Linux x86_64 keeps its static glibc build.
build.sh now takes the job's target triple and builds for the
matching platform in dev/platforms, so the workflow skips older refs
without it. release_files still picks the release flags, now from
the platform's OS and libc. verify.sh also checks the CPU of Linux
files, since one is now cross-compiled.
Work towards #4216