arm64
How do I build a Rust binary for multiple targets?
Quick answer
Use a matrix with one native runner per target, rather than cross-compiling everything on one machine.
The detail that matters
Native builds avoid linker and sysroot problems entirely, and each leg keeps its own warm cache.
Your next build could be twice as fast, at half the price
Start free. Migrating away is the same one line, and we publish that diff too.
Related
Can GitHub Actions run arm64?Yes. GitHub offers arm64 runners on paid plans, and managed providers including runnerhut offer them on all plans.Can I build arm64 images on an x64 runner?Yes, with QEMU — but it is 5–40× slower than building natively.What changes when moving from x64 to arm64?Native modules, Python wheels, and any x86 assembly need aarch64 support. Most mainstream dependencies now have it.Can I run arm64 and x64 jobs in the same workflow?Yes. Use a matrix with a different runner label per architecture.