chore: drop amd64 image build, ship arm64 only #58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/drop-amd64-build"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #53.
Why
The self-hosted Forgejo runner host has 4.8 GiB RAM shared with several other containers, leaving ~200-300 MiB free at build time. After two rounds of memory mitigation in the Dockerfile (#56 jobs=1 + codegen-units=256, #57 opt-level=2) the amd64 Kaniko build still OOM-killed rustc during the release link step, and Forgejo's task log gets wiped on runner death so we couldn't even read what was failing.
The only production target for this relay is rly.best, which is arm64. The pragmatic call is to drop the amd64 image build path; anyone needing amd64 can build from source.
Changes
Workflow (
.forgejo/workflows/container-image.yml):[docker, arm64].:<image_tag>and:latestdirectly as the arm64 manifest, nocrane index appendstep.Dockerfile:
gcc-x86-64-linux-gnu,libc6-dev-amd64-cross,linux-libc-dev-amd64-cross).case "$TARGETARCH"switch to the arm64 path.README: note
linux/arm64only and point amd64 users atcargo build --releasefrom source.Validation
cargo fmt --checkcleancargo test --locked86 passed, 3 ignoredcargo clippy --locked --all-targets -- -D warningscleanFollow-up
After merge:
v0.0.0-debug-amd64-1andv0.0.0-debug-amd64-2tags and any leftover Forgejo Releases.v2.1.8+rs.1(currently in draft) — the arm64 build alone is enough now.