diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 2d2c719..f334941 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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