-
Notifications
You must be signed in to change notification settings - Fork 34
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
ci: Migrate Rust to cimg/rust, cache cargo #717
Conversation
Codecov Report
@@ Coverage Diff @@
## master #717 +/- ##
=======================================
Coverage 99.33% 99.33%
=======================================
Files 73 73
Lines 10917 10917
=======================================
Hits 10844 10844
Misses 73 73
Flags with carried forward coverage won't be shown. Click here to find out more. |
steps: | ||
- restore_cache: | ||
name: "Restore cargo cache" | ||
key: cargo- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean it will pick up anything? Latest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It suppose to download the latest matching this prefix. We cannot match with Cargo.lock because it does not exist here.
apt -yq install llvm-8-dev clang-8 --no-install-recommends | ||
rustup toolchain install nightly-x86_64-unknown-linux-gnu | ||
rustup component add llvm-tools-preview | ||
cargo install cargo-binutils rustfilt | ||
- run: | ||
name: Build (debug mode) | ||
command: RUSTFLAGS="-Z instrument-coverage" cargo +nightly build --target x86_64-unknown-linux-gnu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think --target x86_64-unknown-linux-gnu
can be removed, but it does not hurt. It was needed in chisel because it was also built to the wasm target.
No description provided.