Add arm64 multi-arch release artifacts (closes #26) - #31
Merged
Conversation
- Add conditional 'if: matrix.goarch == amd64' to Docker, SBOM, and Cosign steps - This ensures these operations run only once in the amd64 matrix job - Add 'platforms: linux/amd64,linux/arm64' to docker/build-push-action - buildx now creates a single multi-arch image index in one operation - This eliminates the race condition where both matrix jobs push to the same tag - Avoids concurrent SBOM filename collisions and Cosign signature races - Single-arch binaries still build independently in both matrix jobs (correct)
…H (reproducible-build)
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
Implements full arm64 support across all three implementations (Go, Rust, TypeScript), enabling releases and deployments on arm64 servers (Hetzner CAX31, AWS Graviton, Oracle Ampere, etc.).
Closes: #26
What's Included
Binary Releases
CGO_ENABLED=0(statically linked)x86_64-unknown-linux-musl,aarch64-unknown-linux-musl)Asset naming:
docker-socket-policy-{go,rs,ts}-linux-{amd64,arm64}Docker Images
docker pull— correct architecture selected per hostplatforms: linux/amd64,linux/arm64Release Workflow
if: matrix.arch_name == 'amd64') to prevent race conditions on image registryDocumentation
Impact
Unblocks: ChainSafe/lodestar-infrastructure#9 (docker-socket-policy Ansible role deployment)
The 3x Hetzner CAX31 arm64 hosts in the lodestar fleet (stable-arm64, unstable-arm64, beta-arm64) now have a fully supported install path:
Implementation Details
Go (Task 1)
goarch: [amd64, arm64]CGO_ENABLED: 0,GOOS: linux,GOARCH: ${{ matrix.goarch }}Rust (Task 2)
.cargo/Cross.tomlfor cross-compilation configx86_64-unknown-linux-musl→ amd64aarch64-unknown-linux-musl→ arm64crosstool for arm64 cross-compilationDockerfiles (Task 3)
--platform=linux/amd64pins from all FROM statements${TARGETARCH}for GOARCH (buildx auto-detect)${TARGETPLATFORM}with case statement mapping to Rust target triplesVerification (Task 8)
Testing
All changes validated via:
Related Issues
Builds on:
Enables resolution of: