Skip to content

build(docker): cross-compile images with cargo-zigbuild - #12

Merged
Xe merged 1 commit into
mainfrom
build/cargo-zigbuild
Oct 28, 2026
Merged

Xe merged 1 commit into
mainfrom
build/cargo-zigbuild

Conversation

@Xe

@Xe Xe commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Docker builds currently run the Rust compiler under QEMU for the non-native architecture. Run the builder on BUILDPLATFORM and use cargo-zigbuild to cross-compile AMD64 and ARM64 binaries for the Debian Bookworm runtime.

Remove QEMU setup from publishing and run container smoke tests on native AMD64 and ARM64 runners. Pin cargo-zigbuild to 0.24.0 and Zig to 0.14.1.

Validation:

  • All 56 Rust tests passed with cargo test --locked --workspace --all-features.
  • Built both images together on an ARM64 host, including cross-compilation to AMD64.
  • Both images passed checks for the non-root user, HTML, Markdown, llms.txt, and the skill archive. The local AMD64 runtime check used emulation; CI uses native runners.
  • git diff --check passed.

Build AMD64 and ARM64 images with a native Rust compiler to avoid
QEMU compilation overhead. Run container smoke tests on native runners
for both architectures.

Assisted-by: GPT-6 via Codex
Signed-off-by: Xe Iaso <xe@tigrisdata.com>
@Xe
Xe merged commit 2d06651 into main Oct 28, 2026
4 checks passed
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