From 11f5e23357d74f2b322c29620c383953c70de5e6 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 26 Jan 2021 17:17:01 -0500 Subject: [PATCH] Fix codecov by calling the new binary paths from rust 1.45 Rustc 1.45 moved the paths to test binaries, so we need to update our CI scripts to run the correct ones under kcov. The solution to this was pointed out by Val at https://github.com/rust-bitcoin/rust-lightning/pull/774#issuecomment-763250623 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 92eb6c87..84fc5094 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -75,7 +75,7 @@ jobs: - name: Generate coverage report if: matrix.coverage run: | - for file in target/debug/lightning-*; do + for file in target/debug/deps/lightning*; do [ -x "${file}" ] || continue; mkdir -p "target/cov/$(basename $file)"; ./kcov-build/usr/local/bin/kcov --exclude-pattern=/.cargo,/usr/lib --verify "target/cov/$(basename $file)" "$file"; -- 2.30.2