Skip to content

Commit f13335e

Browse files
committed
ci: switch to dtolnay/rust-toolchain
1 parent 9c49b18 commit f13335e

File tree

3 files changed

+8
-32
lines changed

3 files changed

+8
-32
lines changed

.github/workflows/code_coverage.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@ jobs:
2626
- name: Install lcov tools
2727
run: sudo apt-get install lcov -y
2828
- name: Install Rust toolchain
29-
uses: actions-rs/toolchain@v1
29+
uses: dtolnay/rust-toolchain@nightly
3030
with:
31-
toolchain: nightly
32-
override: true
3331
components: llvm-tools-preview
34-
profile: minimal
3532
- name: Cache cargo
3633
uses: actions/cache@v3
3734
with:

.github/workflows/cont_integration.yml

Lines changed: 6 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,10 @@ jobs:
5151
target
5252
key: ${{ runner.os }}-cargo-${{ hashFiles('.cache_key') }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
5353
- name: Install Rust toolchain
54-
uses: actions-rs/toolchain@v1
54+
uses: dtolnay/rust-toolchain@master
5555
with:
5656
toolchain: ${{ matrix.rust.version }}
57-
override: true
5857
components: clippy
59-
profile: minimal
6058
- name: Pin dependencies for MSRV
6159
if: matrix.rust.version == '1.63.0'
6260
run: |
@@ -88,12 +86,9 @@ jobs:
8886
target
8987
key: ${{ runner.os }}-cargo-test-md-docs-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
9088
- name: Install Rust toolchain
91-
uses: actions-rs/toolchain@v1
89+
uses: dtolnay/rust-toolchain@nightly
9290
with:
93-
toolchain: nightly
94-
override: true
9591
components: clippy
96-
profile: minimal
9792
- name: Test
9893
run: cargo test --features bitcoin/std,miniscript/std,test-md-docs --no-default-features -- doctest::ReadmeDoctests
9994

@@ -133,11 +128,7 @@ jobs:
133128
target
134129
key: ${{ runner.os }}-cargo-${{ github.job }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
135130
- name: Install Rust toolchain
136-
uses: actions-rs/toolchain@v1
137-
with:
138-
toolchain: stable
139-
override: true
140-
profile: minimal
131+
uses: dtolnay/rust-toolchain@stable
141132
- name: Test
142133
run: cargo test --no-default-features --features bitcoin/std,miniscript/std,${{ matrix.blockchain.features }} ${{ matrix.blockchain.testprefix }}::bdk_blockchain_tests -- --test-threads=1
143134

@@ -164,11 +155,7 @@ jobs:
164155
- run: sudo apt-get update || exit 1
165156
- run: sudo apt-get install -y libclang-common-10-dev clang-10 libc6-dev-i386 || exit 1
166157
- name: Install Rust toolchain
167-
uses: actions-rs/toolchain@v1
168-
with:
169-
toolchain: stable
170-
override: true
171-
profile: minimal
158+
uses: dtolnay/rust-toolchain@stable
172159
- name: Add target wasm32
173160
run: rustup target add wasm32-unknown-unknown
174161
- name: Check
@@ -181,12 +168,9 @@ jobs:
181168
- name: Checkout
182169
uses: actions/checkout@v4
183170
- name: Install Rust toolchain
184-
uses: actions-rs/toolchain@v1
171+
uses: dtolnay/rust-toolchain@stable
185172
with:
186-
toolchain: stable
187-
override: true
188173
components: rustfmt
189-
profile: minimal
190174
- name: Check fmt
191175
run: cargo fmt --all -- --config format_code_in_doc_comments=true --check
192176

@@ -211,11 +195,9 @@ jobs:
211195
- name: Install python dependencies
212196
run: pip install hwi==2.1.1 protobuf==3.20.1
213197
- name: Install Rust toolchain
214-
uses: actions-rs/toolchain@v1
198+
uses: dtolnay/rust-toolchain@master
215199
with:
216200
toolchain: ${{ matrix.rust.version }}
217-
override: true
218-
profile: minimal
219201
- name: Pin dependencies for MSRV
220202
if: matrix.rust.version == '1.63.0'
221203
run: |

.github/workflows/nightly_docs.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,9 @@ jobs:
2626
target
2727
key: nightly-docs-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
2828
- name: Install Rust toolchain
29-
uses: actions-rs/toolchain@v1
29+
uses: dtolnay/rust-toolchain@nightly
3030
with:
31-
toolchain: nightly
32-
override: true
3331
components: clippy
34-
profile: minimal
3532
- name: Build docs
3633
run: cargo rustdoc --verbose --features=compiler,electrum,esplora,use-esplora-blocking,compact_filters,rpc,key-value-db,sqlite,all-keys,verify,hardware-signer -- --cfg docsrs -Dwarnings
3734
- name: Upload artifact

0 commit comments

Comments
 (0)