From 0e8849cea6a3c9965ef145f0449167f2e6b2d9d7 Mon Sep 17 00:00:00 2001 From: valued mammal Date: Thu, 4 Dec 2025 17:41:41 -0500 Subject: [PATCH] ci(coverage): Pin toolchain to `nightly-2025-11-27` 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml index dbbdc6632..11f507af1 100644 --- a/.github/workflows/code_coverage.yml +++ b/.github/workflows/code_coverage.yml @@ -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