Skip to content

perf: cross-compile arm64 instead of building under QEMU - #23

Merged
JustMaris merged 1 commit into
mainfrom
perf/cross-compile
Oct 4, 2026
Merged

JustMaris merged 1 commit into
mainfrom
perf/cross-compile

Conversation

@JustMaris

Copy link
Copy Markdown
Member

The builder stage now runs on the runner's own arch (FROM --platform=$BUILDPLATFORM) and Go cross-compiles with GOOS=$TARGETOS GOARCH=$TARGETARCH. arm64 no longer builds under QEMU. This is the same pattern momentarr uses, where builds take ~1 min; this repo's builds take ~5 min today.

Checked locally: building --platform linux/amd64 on an arm64 Mac produces an image that starts and exits with the expected config error.

@JustMaris
JustMaris merged commit 1ba2391 into main Oct 4, 2026
8 checks passed
@JustMaris
JustMaris deleted the perf/cross-compile branch October 4, 2026 16:40
@dnb-robot dnb-robot Bot mentioned this pull request Oct 4, 2026
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.

1 participant