Skip to content

Commit

Permalink
fix: add LLVM instrumentation
Browse files Browse the repository at this point in the history
  • Loading branch information
romanzac committed Sep 16, 2024
1 parent 5827cf7 commit 1106be8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/my_codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
cargo binstall -y grcov;
cargo test --no-default-features --features libp2p --no-run
rustup component add llvm-tools-preview
CARGO_INCREMENTAL=0 RUSTFLAGS='-Cinstrument-coverage' LLVM_PROFILE_FILE='cargo-test-%p-%m.profraw' cargo test --no-default-features --features libp2p
mkdir /tmp/cov;
grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o /tmp/cov/tests.lcov;
grcov . --binary-path ./target/debug/deps/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o /tmp/cov/tests.lcov;
env:
SLOW_TEST_ENV: true
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 1106be8

Please sign in to comment.