Skip to content

ci: Migrate Rust to cimg/rust, cache cargo#717

Merged
chfast merged 1 commit intomasterfrom
ci_rust
Feb 3, 2021
Merged

ci: Migrate Rust to cimg/rust, cache cargo#717
chfast merged 1 commit intomasterfrom
ci_rust

Conversation

@chfast
Copy link
Collaborator

@chfast chfast commented Feb 3, 2021

No description provided.

@codecov
Copy link

codecov bot commented Feb 3, 2021

Codecov Report

Merging #717 (4e805a9) into master (54daf26) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #717   +/-   ##
=======================================
  Coverage   99.33%   99.33%           
=======================================
  Files          73       73           
  Lines       10917    10917           
=======================================
  Hits        10844    10844           
  Misses         73       73           
Flag Coverage Δ
rust 99.61% <ø> (ø)
spectests 90.84% <ø> (ø)
unittests 99.32% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@chfast chfast changed the title CI: Update Rust config ci: Migrate Rust to cimg/rust, cache cargo Feb 3, 2021
@chfast chfast marked this pull request as ready for review February 3, 2021 12:59
@chfast chfast requested review from axic and gumb0 February 3, 2021 13:49
steps:
- restore_cache:
name: "Restore cargo cache"
key: cargo-
Copy link
Member

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?

Copy link
Collaborator Author

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.

cargo install cargo-binutils rustfilt
- run:
name: Build (debug mode)
command: RUSTFLAGS="-Z instrument-coverage" cargo +nightly build --target x86_64-unknown-linux-gnu
Copy link
Member

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.

@chfast chfast merged commit 91f2ba4 into master Feb 3, 2021
@chfast chfast deleted the ci_rust branch February 3, 2021 17:35
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.

3 participants