uraimo / run-on-arch-action

A Github Action that executes jobs/commands on non-x86 cpu architectures (ARMv6, ARMv7, aarch64, s390x, ppc64le, riscv64) via QEMU
BSD 3-Clause "New" or "Revised" License
682 stars 151 forks source link

can't use cargo in this action #116

Closed try-agaaain closed 1 year ago

try-agaaain commented 1 year ago

I want to use this action to build a rust application on aarch64, but when I run cargo, this action will suddenly stop and exit. Frustratingly, no helpful prompts are given after exiting. Failed action

image

By the way, I can build normally on my local aarch64 machine.

martin-g commented 1 year ago

The problem is that cargo tries to fetch the crates.io index and fails with OOM. It is a known issue!

See https://github.com/rust-lang/cargo/issues/10781#issuecomment-1351670409 Another solution is to use the new SPARSE protocol - https://blog.rust-lang.org/2023/03/09/Rust-1.68.0.html#cargos-sparse-protocol.

uraimo commented 1 year ago

Thanks @martin-g! Since with this we already have 2 issues related to Rust, it's probably time I'll start adding a specific section to the readme about solutions to common problems.

@try-agaaain can you confirm if this fixes the issue?

try-agaaain commented 1 year ago

Yes, it works fine now, thanks a lot.