Skip to content

Commit

Permalink
Merge pull request #125 from matiaskorhonen/latest-grcov
Browse files Browse the repository at this point in the history
Fix the code coverage
  • Loading branch information
matiaskorhonen authored Feb 2, 2024
2 parents 68462db + de43359 commit e4d8146
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e4d8146

Please sign in to comment.