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

feat: xx-cargo #114

Merged
merged 6 commits into from
Nov 25, 2022
Merged

feat: xx-cargo #114

merged 6 commits into from
Nov 25, 2022

Conversation

strophy
Copy link
Collaborator

@strophy strophy commented Nov 25, 2022

We are having problems moving forward with PRs on this repo because CI is failing. Investigation showed this was likely occurring due to an OOM error while attempting to compile two Rust targets simultaneously in QEMU. On my local machine, this would consume 32GB RAM + 8GB swap and hard crash the system. I think this was also the cause of CI logs not being available, the runner probably died before anything could be uploaded (even though the stream was visible during a run).

https://github.com/tonistiigi/xx/ recently added support for Rust, and using the Rust cross compiler shows no significant memory consumption. strip was moved to be handled by cargo as well, to ensure that the native toolchain is used to process cross-compiled binaries. And caching support was added to the Rust section of the Dockerfile to speed up local development and support future caching in CI.

@strophy strophy mentioned this pull request Nov 25, 2022
@strophy strophy marked this pull request as ready for review November 25, 2022 06:57
@strophy
Copy link
Collaborator Author

strophy commented Nov 25, 2022

@rvolosatovs this fixes our CI problem. Let's merge this first, then we can use it unblock all the other pending PRs 🚀

Copy link
Owner

@rvolosatovs rvolosatovs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, LGTM!

@rvolosatovs rvolosatovs merged commit 29464ce into main Nov 25, 2022
@rvolosatovs rvolosatovs deleted the feat/xx-rust branch November 25, 2022 09:13
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.

2 participants