Skip to content

feat(build): add multi-arch support for ARM64 builds and container images#2442

Open
vimalk78 wants to merge 1 commit intosustainable-computing-io:mainfrom
vimalk78:multi-arch-builds
Open

feat(build): add multi-arch support for ARM64 builds and container images#2442
vimalk78 wants to merge 1 commit intosustainable-computing-io:mainfrom
vimalk78:multi-arch-builds

Conversation

@vimalk78
Copy link
Collaborator

  • Dockerfile: cross-compile via BUILDPLATFORM/TARGETARCH with auto cross-compiler install (amd64<->arm64)
  • Makefile: overridable GOOS/GOARCH, CC passthrough, sysroot auto-detection for Fedora, image-multi target using docker buildx
  • Add cross-compilation developer guide with prerequisites

…ages

  - Dockerfile: cross-compile via BUILDPLATFORM/TARGETARCH with auto
    cross-compiler install (amd64<->arm64)
  - Makefile: overridable GOOS/GOARCH, CC passthrough, sysroot
    auto-detection for Fedora, image-multi target using docker buildx
  - Add cross-compilation developer guide with prerequisites

Signed-off-by: Vimal Kumar <vimal78@gmail.com>
@@ -1,21 +1,42 @@
# Build the binary
FROM golang:1.24 AS builder
FROM --platform=$BUILDPLATFORM golang:1.24 AS builder

Check warning

Code scanning / Scorecard

Pinned-Dependencies Medium

score is 0: containerImage not pinned by hash
Remediation tip: pin your Docker image by updating golang:1.24 to golang:1.24@sha256:d2d2bc1c84f7e60d7d2438a3836ae7d0c847f4888464e7ec9ba3a1339a1ee804
Click Remediation section below for further remediation help
@github-actions github-actions bot added the feat A new feature or enhancement label Mar 16, 2026
@codecov
Copy link

codecov bot commented Mar 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.83%. Comparing base (be70b52) to head (d682814).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2442   +/-   ##
=======================================
  Coverage   91.83%   91.83%           
=======================================
  Files          55       55           
  Lines        5857     5857           
=======================================
  Hits         5379     5379           
  Misses        343      343           
  Partials      135      135           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat A new feature or enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant