From 6ef4d5a98b02d142097b5e6b0bf6e555f78a8022 Mon Sep 17 00:00:00 2001 From: Hugo Hakim Damer Date: Wed, 20 Nov 2024 14:57:45 +0100 Subject: [PATCH] fixup! fixup! fix(ci): replace removed -Zprofile with -Cinstrument-coverage for source-based coverage reports --- .github/workflows/check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f334941..7919f9c 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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