build: support native architecture builds on ARM hosts #8547
+37
−14
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.
Removes forced amd64 cross-compilation. Builds now run natively for the host architecture.
This is a focused subset of #8389, extracting only the changes needed for native ARM builds without CI workflow modifications.
The upstream CI currently runs on amd64 only. A future PR can add parallel arm64 runners to produce multi-platform binaries and container images.
Changes
tools/container-build.sh: Detect host architecture instead of forcing amd64 on ARM.Containerfile: AddTARGETPLATFORMarg for correct Go binary download.tools/make-deb.sh: AcceptARCHfrom caller for deb packaging.ARCHenv var is now required.amd64/arm64(previouslyx86_64)..from tar command..githubto.dockerignoreand build artifact patterns to.gitignore.Testing
Native builds work on both architectures:
Cross-compilation via QEMU is not supported (Go assembler segfaults under emulation). For multi-platform binaries, use native runners for each architecture.