]> Untitled Git - bdk/commitdiff
ci(coverage): Pin toolchain to `nightly-2025-11-27`
authorvalued mammal <valuedmammal@protonmail.com>
Thu, 4 Dec 2025 22:41:41 +0000 (17:41 -0500)
committervalued mammal <valuedmammal@protonmail.com>
Mon, 8 Dec 2025 17:57:33 +0000 (12:57 -0500)
This fixes a CI failure resulting from use of rustc nightly
with `llvm-cov`.

refer to:
https://github.com/bitcoindevkit/bdk/actions/runs/19946035484.

As a workaround we change `code_coverage.yml` to set the toolchain
to `nightly-2025-11-27` which is a version of the compiler that
is known to work with `cargo-llvm-cov` at generating coverage
reports.

.github/workflows/code_coverage.yml

index dbbdc6632680bfc6c03030796bf3c4f533b06cfc..11f507af1e14dd23f14eb4d495cc7ea9e6bf7d6a 100644 (file)
@@ -18,7 +18,7 @@ jobs:
       - name: Install Rust toolchain
         uses: actions-rust-lang/setup-rust-toolchain@v1
         with:
-            toolchain: nightly
+            toolchain: nightly-2025-11-27
             override: true
             cache: true
             components: llvm-tools-preview
@@ -27,7 +27,7 @@ jobs:
       - name: Make coverage directory
         run: mkdir coverage
       - name: Test and report coverage
-        run: cargo +nightly llvm-cov -q --doctests --branch --all --ignore-filename-regex "(example*|crates/testenv/*)" --all-features --lcov --output-path ./coverage/lcov.info
+        run: cargo llvm-cov -q --doctests --branch --all --ignore-filename-regex "(example*|crates/testenv/*)" --all-features --lcov --output-path ./coverage/lcov.info
       - name: Generate HTML coverage report
         run: genhtml -o coverage-report.html --ignore-errors unmapped ./coverage/lcov.info
       - name: Coveralls upload