Skip to content

Commit

Permalink
Install pre-built grcov
Browse files Browse the repository at this point in the history
  • Loading branch information
pnehrer committed Apr 21, 2024
1 parent b8c7dbe commit 3754324
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ jobs:
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
- name: Install grcov
run: cargo install grcov --version 0.8.9
run: |
wget -O /tmp/grcov.tar.bz2 https://github.com/mozilla/grcov/releases/download/v0.8.19/grcov-x86_64-unknown-linux-gnu.tar.bz2
tar xjf /tmp/grcov.tar.bz2
mv grcov /usr/local/bin/
chmod +x /usr/local/bin/grcov
- name: Run grcov
run: grcov . -s . --binary-path ./target/debug/ --excl-start '^mod\s+tests\s*\{$' -t covdir --branch --ignore-not-existing --keep-only 'src/**' -o ./target/covdir.json
- name: Generate coverage report
Expand Down

0 comments on commit 3754324

Please sign in to comment.