You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(docker): use native cross-compilation instead of QEMU
Multi-arch builds were slow because Docker buildx ran the entire
builder stage under QEMU emulation for non-host architectures.
The arm64 go build took ~10 minutes on amd64 runners vs ~2.5 minutes
natively.
- Add --platform=$BUILDPLATFORM to builder FROM in Dockerfile
- Simplify docker-buildx Makefile target (remove Dockerfile.cross
sed workaround that existed for this exact purpose)
- Drop s390x and ppc64le from PLATFORMS (only amd64/arm64 needed)
Go's cross-compiler handles GOARCH natively with CGO_ENABLED=0,
so QEMU emulation is no longer used for any RUN step. Expected
CI build time reduction from ~15 min to ~5 min.
0 commit comments