Skip to content

perf(ci): native ARM Docker build (drop 90min QEMU emulation)#185

Merged
7xuanlu merged 1 commit into
mainfrom
worktree-fix+docker-amd64-only
May 25, 2026
Merged

perf(ci): native ARM Docker build (drop 90min QEMU emulation)#185
7xuanlu merged 1 commit into
mainfrom
worktree-fix+docker-amd64-only

Conversation

@7xuanlu
Copy link
Copy Markdown
Owner

@7xuanlu 7xuanlu commented May 25, 2026

Multi-arch Docker build with `platforms: linux/amd64,linux/arm64` on x86_64 runner uses QEMU to emulate arm64. Rust + C++ compile under emulation = 5-10× native time. v0.7.0 spent 90+ min on the Docker step. Cancelled and applying fix.

Change

Split into per-platform matrix using free `ubuntu-24.04-arm` for arm64 (same as PR #182's release matrix). Per-platform tags (`:v0.7.0-amd64`, `:v0.7.0-arm64`), then `docker-manifest` job combines them via `docker buildx imagetools create` into canonical `:v0.7.0` and `:latest` multi-arch refs.

Expected: 90min → ~10min wall-clock.

Risk

  • `docker buildx imagetools create` may need explicit auth (login-action covers it).
  • Tag layout changes slightly: per-platform suffix tags exist as side effects. Acceptable.

Multi-arch Docker build `platforms: linux/amd64,linux/arm64` on a
single x86_64 runner used QEMU to emulate arm64 — Rust + C++ build
inside that emulated container takes 5-10× native time. Last release
spent 90+ min on the Docker step.

Split into per-platform matrix using the free `ubuntu-24.04-arm`
runner for arm64. Same pattern as PR #182's release matrix swap.
Each platform builds + pushes a `:tag-amd64` / `:tag-arm64` image.
A docker-manifest job combines them into the canonical `:tag` and
`:latest` multi-arch references via `docker buildx imagetools
create`.

Expected: 90min → ~10min wall-clock (two ~10min native builds in
parallel + ~30s manifest combine).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@7xuanlu 7xuanlu merged commit eefa266 into main May 25, 2026
7 checks passed
7xuanlu added a commit that referenced this pull request May 25, 2026
Resolves conflict in Cargo.toml [workspace.dependencies] where P0a's
`fs2 = "0.4"` collided with main's new `[profile.release]` block from
the CI-throughput tune (PRs #173/#179/#182/#184/#185/#186 wave).

Brings in stale-test fix for `release_workflow_publishes_cli_and_mcp_npm_packages`
via PR #173's distribution.rs update (drops origin-darwin-x64 needle).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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