Skip to content

Commit 63ddc42

Browse files
authored
merge: pull request #27 from namib-project/ci_update_grcov
ci: update grcov to latest stable version
2 parents 3832486 + d2b3d70 commit 63ddc42

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

.github/workflows/check.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,23 +95,20 @@ jobs:
9595
submodules: true
9696
- uses: dtolnay/rust-toolchain@nightly
9797
with:
98-
components: rustc, rust-std, cargo, llvm-tools
98+
components: rustc, rust-std, cargo, llvm-tools, llvm-tools-preview
9999
- uses: baptiste0928/cargo-install@v3
100100
with:
101101
crate: grcov
102-
# grcov currently has some compilation issues on newer rust versions due to an outdated dependency.
103-
# This pulls in the branch from https://github.com/mozilla/grcov/pull/1191 in order to fix this.
104-
git: https://github.com/cemoktra/grcov.git
105-
branch: cemoktra/fix-1187
106102
- run: cargo clean
103+
- run: mkdir -p ./target/debug/coverage
107104
- run: cargo test --all-features --no-fail-fast
108105
env:
109106
CARGO_INCREMENTAL: '0'
110-
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cllvm-args=--inline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
111-
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cllvm-args=--inline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
112-
- run: mkdir ./target/debug/coverage
113-
- run: zip ./target/debug/coverage/files.zip ./target/debug/deps/dcaf-*.gcda ./target/debug/deps/dcaf-*.gcno
114-
- run: grcov ./target/debug/coverage/files.zip -s . --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}
107+
LLVM_PROFILE_FILE: 'target/debug/coverage/dcaf-%p-%m.profraw'
108+
RUSTFLAGS: '-Cinstrument-coverage -Cpanic=abort -Zpanic_abort_tests'
109+
RUSTDOCFLAGS: '-C instrument-coverage -Cpanic=abort -Zpanic_abort_tests -Z unstable-options --persist-doctests target/debug/'
110+
- run: zip ./target/debug/coverage/files.zip ./target/debug/coverage/dcaf-*.profraw
111+
- 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}
115112
- name: Coveralls upload
116113
uses: coverallsapp/github-action@main
117114
with:

0 commit comments

Comments
 (0)