From: Matt Corallo Date: Tue, 26 Jan 2021 22:17:01 +0000 (-0500) Subject: Fix codecov by calling the new binary paths from rust 1.45 X-Git-Tag: v0.0.13~39^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=11f5e23357d74f2b322c29620c383953c70de5e6;p=rust-lightning 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 --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 92eb6c87b..84fc50946 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";