Skip to content

Commit

Permalink
fixup! fixup! fix(ci): replace removed -Zprofile with -Cinstrument-co…
Browse files Browse the repository at this point in the history
…verage for source-based coverage reports
  • Loading branch information
pulsastrix committed Nov 20, 2024
1 parent 2974ebf commit 6ef4d5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ jobs:
with:
crate: grcov
- run: cargo clean
- run: mkdir ./target/debug/coverage
- run: mkdir -p ./target/debug/coverage
- run: cargo test --all-features --no-fail-fast
env:
CARGO_INCREMENTAL: '0'
LLVM_PROFILE_FILE: 'target/debug/coverage/dcaf-%p-%m.profraw'
RUSTFLAGS: '-Cinstrument-coverage -Cpanic=abort -Zpanic_abort_tests'
RUSTDOCFLAGS: '-C instrument-coverage -Cpanic=abort -Zpanic_abort_tests -Z unstable-options --persist-doctests target/debug/'
- run: zip ./target/debug/coverage/files.zip ./target/debug/deps/dcaf-*.profraw
- run: zip ./target/debug/coverage/files.zip "./target/debug/deps/dcaf-*.profraw"
- run: grcov ./target/debug/coverage/files.zip -s . --binary-path ./target/debug/ --service-name "Continuous Integration" --commit-sha ${GITHUB_SHA} -t coveralls --branch --ignore-not-existing --ignore "../*" --ignore "/*" --ignore "*/test_helper.rs" -o ./target/debug/coverage/ --token=${COVERALLS_TOKEN}
- name: Coveralls upload
uses: coverallsapp/github-action@main
Expand Down

0 comments on commit 6ef4d5a

Please sign in to comment.