]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix codecov by calling the new binary paths from rust 1.45
authorMatt Corallo <git@bluematt.me>
Tue, 26 Jan 2021 22:17:01 +0000 (17:17 -0500)
committerMatt Corallo <git@bluematt.me>
Wed, 27 Jan 2021 02:53:04 +0000 (21:53 -0500)
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

index 92eb6c87b834a2b8b728733fa36ac0de729b580c..84fc509462f74dff8e341d4327db4f3f6a6039f5 100644 (file)
@@ -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";