From 8b2a01082d4607c978eb02fe4b0c38a7bc2a0f7b Mon Sep 17 00:00:00 2001 From: Ivan Folgueira Bande Date: Sun, 5 Oct 2025 19:11:20 +0200 Subject: [PATCH] fix grcov --- .github/workflows/codecov.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index c66752c..8a376bd 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -16,9 +16,10 @@ jobs: - uses: actions/checkout@v3 with: submodules: true + - name: Add llvm-tools-preview component + run: rustup component add llvm-tools-preview - name: Checkout submodules run: git submodule update --init --recursive - - uses: actions-rs/toolchain@v1 with: profile: minimal @@ -27,16 +28,12 @@ jobs: components: llvm-tools-preview - uses: actions-rs/cargo@v1 continue-on-error: true - - name: Install cargo-binstall - run: cargo install cargo-binstall - - run: | - cargo binstall -y grcov; - cargo test --all-features; - cargo test discv5_echo -- --ignored; - cargo test default_echo -- --ignored; + - name: Run Grcov + run: | rm -rf /tmp/cov; + cargo binstall -y grcov; mkdir /tmp/cov; - grcov . --binary-path ./target/debug/ -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o /tmp/cov/tests.lcov; + grcov . --binary-path ./target/debug -s . -t lcov --branch --ignore-not-existing --ignore '../*' --ignore "/*" -o /tmp/cov/tests.lcov; - uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }}