Skip to content

Commit

Permalink
fixup! fix(ci): replace removed -Zprofile with -Cinstrument-coverage …
Browse files Browse the repository at this point in the history
…for source-based coverage reports
  • Loading branch information
pulsastrix committed Nov 20, 2024
1 parent 987f617 commit 2974ebf
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,13 +100,13 @@ jobs:
with:
crate: grcov
- run: cargo clean
- run: mkdir ./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: '-Zprofile -Ccodegen-units=1 -Cllvm-args=--inline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
- run: mkdir ./target/debug/coverage
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: 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
Expand Down

0 comments on commit 2974ebf

Please sign in to comment.