From 31b057ce7d294483b9c564a9f8f8a01c3baf7d36 Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Sat, 7 Oct 2023 10:31:50 +0200 Subject: [PATCH] ci: try to fix coverage uploading once more --- .github/actions-rs/grcov.yml | 11 +++++++++++ .github/workflows/codecov.yml | 18 +++++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) create mode 100644 .github/actions-rs/grcov.yml diff --git a/.github/actions-rs/grcov.yml b/.github/actions-rs/grcov.yml new file mode 100644 index 00000000..c84dba3c --- /dev/null +++ b/.github/actions-rs/grcov.yml @@ -0,0 +1,11 @@ +branch: true +ignore-not-existing: true +llvm: true +filter: covered +output-type: lcov +output-path: ./lcov.info +prefix-dir: ./target/debug +ignore: + - "/*" + - "C:/*" + - "../*" diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index d06f2bda..bc69c450 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -19,6 +19,10 @@ jobs: with: toolchain: nightly override: true + - name: Clean + uses: actions-rs/cargo@v1 + with: + command: clean - name: Build & test uses: actions-rs/cargo@v1 with: @@ -26,19 +30,11 @@ jobs: args: --workspace --all-features --no-fail-fast env: CARGO_INCREMENTAL: '0' - RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off' - RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off' + RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' + RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' - id: coverage name: Generate coverage - uses: actions-rs/grcov@0.2-proto - with: - args: > - -t lcov - --llvm - --ignore-not-existing - --ignore "/*" - -o ./target/lcov.info - ./target/debug/ + uses: actions-rs/grcov@v0.1 - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: