Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't use cargo in this action #116

Closed
try-agaaain opened this issue Mar 15, 2023 · 3 comments
Closed

can't use cargo in this action #116

try-agaaain opened this issue Mar 15, 2023 · 3 comments

Comments

@try-agaaain
Copy link

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
Copy link
Contributor

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

See rust-lang/cargo#10781 (comment)
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
Copy link
Owner

uraimo commented Mar 15, 2023

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
Copy link
Author

Yes, it works fine now, thanks a lot.

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

No branches or pull requests

3 participants