-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from matiaskorhonen/latest-grcov
Fix the code coverage
- Loading branch information
Showing
1 changed file
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,9 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Rust | ||
run: rustup toolchain install stable --component clippy --profile minimal --no-self-update | ||
run: | | ||
rustup toolchain install stable --component clippy --profile minimal --no-self-update | ||
rustup default stable | ||
- name: Configure cache | ||
uses: Swatinem/rust-cache@v2 | ||
- uses: giraffate/clippy-action@v1 | ||
|
@@ -60,7 +62,7 @@ jobs: | |
uses: robinraju/[email protected] | ||
with: | ||
repository: "mozilla/grcov" | ||
tag: "v0.8.18" | ||
latest: true | ||
fileName: grcov-x86_64-unknown-linux-gnu.tar.bz2 | ||
out-file-path: tmp | ||
- name: Install grcov | ||
|
@@ -70,11 +72,14 @@ jobs: | |
mv grcov "${HOME}/.local/bin" | ||
chmod +x "${HOME}/.local/bin/grcov" | ||
- name: Set up Rust | ||
run: rustup toolchain install nightly --component llvm-tools --profile minimal --no-self-update | ||
run: | | ||
rustup toolchain install nightly --component llvm-tools --profile minimal --no-self-update | ||
rustup default nightly | ||
- name: Configure cache | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Run tests (JSON output) | ||
if: startsWith(matrix.os, 'ubuntu') | ||
shell: bash | ||
run: cargo test --verbose -- -Z unstable-options --report-time --format json | tee test-output.json | ||
env: | ||
CARGO_INCREMENTAL: 0 | ||
|
@@ -108,7 +113,9 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Rust | ||
run: rustup toolchain install stable --profile minimal --no-self-update | ||
run: | | ||
rustup toolchain install stable --profile minimal --no-self-update | ||
rustup default stable | ||
- name: Configure cache | ||
uses: Swatinem/rust-cache@v2 | ||
- name: Compile binary | ||
|