Skip to content

Commit ecfe271

Browse files
committed
Merge #2151: fix(ci): pin toolchain, and switch to actions-rust-lang/setup-rust-toolchain
c99a547 fix(ci): pin toolchain, and switch to `actions-rust-lang/setup-rust-toolchain` (valued mammal) Pull request description: ### Description Currently the code coverage step is failing on `release/chain-0.23.x`, this PR applies the fix that's currently in master. ### Changelog notice ``` ### Changed - ci(coverage): switch to `action-rust-lang/setup-rust-toolchain`. - ci(coverage): pin toolchain to `nightly-2025-11-27`. ``` ### Checklists #### All Submissions: * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) #### Bugfixes: * [x] This pull request breaks the existing API * [x] I've added tests to reproduce the issue which are now passing * [x] I'm linking the issue being fixed by this PR ACKs for top commit: luisschwab: ACK c99a547 Tree-SHA512: bf7d28fc243d6248736a5db8416bc128aeb0bf9be14360105f013e732d0a6a6113dc46a017d09655e56a46c0d485552392c554535fe3efddddf83b4b0593a631
2 parents d8be40c + c99a547 commit ecfe271

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/code_coverage.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,18 @@ jobs:
1616
- name: Install lcov tools
1717
run: sudo apt-get install lcov -y
1818
- name: Install Rust toolchain
19-
uses: actions-rs/toolchain@v1
19+
uses: actions-rust-lang/setup-rust-toolchain@v1
2020
with:
21-
toolchain: nightly
21+
toolchain: nightly-2025-11-27
2222
override: true
23-
profile: minimal
23+
cache: true
2424
components: llvm-tools-preview
25-
- name: Rust Cache
26-
uses: Swatinem/rust-cache@v2.7.8
2725
- name: Install cargo-llvm-cov
2826
run: if [[ ! -e ~/.cargo/bin/cargo-llvm-cov ]]; then cargo install cargo-llvm-cov; fi
2927
- name: Make coverage directory
3028
run: mkdir coverage
3129
- name: Test and report coverage
32-
run: cargo +nightly llvm-cov -q --doctests --branch --all --ignore-filename-regex "(example*|crates/testenv/*)" --all-features --lcov --output-path ./coverage/lcov.info
30+
run: cargo llvm-cov -q --doctests --branch --all --ignore-filename-regex "(example*|crates/testenv/*)" --all-features --lcov --output-path ./coverage/lcov.info
3331
- name: Generate HTML coverage report
3432
run: genhtml -o coverage-report.html --ignore-errors unmapped ./coverage/lcov.info
3533
- name: Coveralls upload

.github/zizmor.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Zizmor config
2+
rules:
3+
unpinned-uses:
4+
config:
5+
policies:
6+
# Allow pin by ref/tag
7+
actions-rust-lang/setup-rust-toolchain: ref-pin

0 commit comments

Comments
 (0)