@@ -39,31 +39,32 @@ jobs:
3939 - sqlite-bundled
4040 steps :
4141 - name : checkout
42- uses : actions/checkout@v2
42+ uses : actions/checkout@v4
4343 - name : Generate cache key
4444 run : echo "${{ matrix.rust.version }} ${{ matrix.features }}" | tee .cache_key
4545 - name : cache
46- uses : actions/cache@v2
46+ uses : actions/cache@v4
4747 with :
4848 path : |
4949 ~/.cargo/registry
5050 ~/.cargo/git
5151 target
5252 key : ${{ runner.os }}-cargo-${{ hashFiles('.cache_key') }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
53- - name : Set default toolchain
54- run : rustup default ${{ matrix.rust.version }}
55- - name : Set profile
56- run : rustup set profile minimal
57- - name : Add clippy
58- if : ${{ matrix.rust.clippy }}
59- run : rustup component add clippy
60- - name : Update toolchain
61- run : rustup update
53+ - name : Install Rust toolchain
54+ uses : actions-rs/toolchain@v1
55+ with :
56+ toolchain : ${{ matrix.rust.version }}
57+ override : true
58+ components : clippy
59+ profile : minimal
6260 - name : Pin dependencies for MSRV
6361 if : matrix.rust.version == '1.63.0'
6462 run : |
65- cargo update -p regex --precise "1.7.3"
63+ cargo update -p tokio --precise "1.38.1"
64+ cargo update -p tokio-util --precise "0.7.11"
6665 cargo update -p home --precise "0.5.5"
66+ cargo update -p regex --precise "1.7.3"
67+ cargo update -p security-framework-sys --precise "2.11.1"
6768 - name : Build
6869 run : cargo build --features bitcoin/std,miniscript/std,${{ matrix.features }} --no-default-features
6970 - name : Clippy
@@ -77,21 +78,22 @@ jobs:
7778 runs-on : ubuntu-latest
7879 steps :
7980 - name : checkout
80- uses : actions/checkout@v2
81+ uses : actions/checkout@v4
8182 - name : cache
82- uses : actions/cache@v2
83+ uses : actions/cache@v4
8384 with :
8485 path : |
8586 ~/.cargo/registry
8687 ~/.cargo/git
8788 target
8889 key : ${{ runner.os }}-cargo-test-md-docs-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
89- - name : Set default toolchain
90- run : rustup default nightly
91- - name : Set profile
92- run : rustup set profile minimal
93- - name : Update toolchain
94- run : rustup update
90+ - name : Install Rust toolchain
91+ uses : actions-rs/toolchain@v1
92+ with :
93+ toolchain : nightly
94+ override : true
95+ components : clippy
96+ profile : minimal
9597 - name : Test
9698 run : cargo test --features bitcoin/std,miniscript/std,test-md-docs --no-default-features -- doctest::ReadmeDoctests
9799
@@ -100,6 +102,7 @@ jobs:
100102 runs-on : ubuntu-20.04
101103 strategy :
102104 fail-fast : false
105+ max-parallel : 1
103106 matrix :
104107 blockchain :
105108 - name : electrum
@@ -119,22 +122,23 @@ jobs:
119122 features : test-esplora,use-esplora-blocking,verify,bitcoin/std,miniscript/std
120123 steps :
121124 - name : Checkout
122- uses : actions/checkout@v2
125+ uses : actions/checkout@v4
123126 - name : Cache
124- uses : actions/cache@v2
127+ uses : actions/cache@v4
125128 with :
126129 path : |
127130 ~/.cargo/registry
128131 ~/.cargo/git
129132 target
130133 key : ${{ runner.os }}-cargo-${{ github.job }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
131- - name : Setup rust toolchain
134+ - name : Install Rust toolchain
132135 uses : actions-rs/toolchain@v1
133136 with :
134137 toolchain : stable
135138 override : true
139+ profile : minimal
136140 - name : Test
137- run : cargo test --no-default-features --features bitcoin/std,miniscript/std,${{ matrix.blockchain.features }} ${{ matrix.blockchain.testprefix }}::bdk_blockchain_tests
141+ run : cargo test --no-default-features --features bitcoin/std,miniscript/std,${{ matrix.blockchain.features }} ${{ matrix.blockchain.testprefix }}::bdk_blockchain_tests -- --test-threads=1
138142
139143 check-wasm :
140144 name : Check WASM
@@ -144,9 +148,9 @@ jobs:
144148 CFLAGS : -I/usr/include
145149 steps :
146150 - name : Checkout
147- uses : actions/checkout@v2
151+ uses : actions/checkout@v4
148152 - name : Cache
149- uses : actions/cache@v2
153+ uses : actions/cache@v4
150154 with :
151155 path : |
152156 ~/.cargo/registry
@@ -158,14 +162,14 @@ jobs:
158162 - run : sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main" || exit 1
159163 - run : sudo apt-get update || exit 1
160164 - run : sudo apt-get install -y libclang-common-10-dev clang-10 libc6-dev-i386 || exit 1
161- - name : Set default toolchain
162- run : rustup default stable
163- - name : Set profile
164- run : rustup set profile minimal
165+ - name : Install Rust toolchain
166+ uses : actions-rs/toolchain@v1
167+ with :
168+ toolchain : stable
169+ override : true
170+ profile : minimal
165171 - name : Add target wasm32
166172 run : rustup target add wasm32-unknown-unknown
167- - name : Update toolchain
168- run : rustup update
169173 - name : Check
170174 run : cargo check --target wasm32-unknown-unknown --features bitcoin/no-std,miniscript/no-std,async-interface,use-esplora-async,dev-getrandom-wasm --no-default-features
171175
@@ -174,15 +178,14 @@ jobs:
174178 runs-on : ubuntu-latest
175179 steps :
176180 - name : Checkout
177- uses : actions/checkout@v2
178- - name : Set default toolchain
179- run : rustup default nightly
180- - name : Set profile
181- run : rustup set profile minimal
182- - name : Add rustfmt
183- run : rustup component add rustfmt
184- - name : Update toolchain
185- run : rustup update
181+ uses : actions/checkout@v4
182+ - name : Install Rust toolchain
183+ uses : actions-rs/toolchain@v1
184+ with :
185+ toolchain : stable
186+ override : true
187+ components : rustfmt
188+ profile : minimal
186189 - name : Check fmt
187190 run : cargo fmt --all -- --config format_code_in_doc_comments=true --check
188191
@@ -206,16 +209,19 @@ jobs:
206209 python-version : ' 3.9'
207210 - name : Install python dependencies
208211 run : pip install hwi==2.1.1 protobuf==3.20.1
209- - name : Set default toolchain
210- run : rustup default ${{ matrix.rust.version }}
211- - name : Set profile
212- run : rustup set profile minimal
213- - name : Update toolchain
214- run : rustup update
212+ - name : Install Rust toolchain
213+ uses : actions-rs/toolchain@v1
214+ with :
215+ toolchain : ${{ matrix.rust.version }}
216+ override : true
217+ profile : minimal
215218 - name : Pin dependencies for MSRV
216219 if : matrix.rust.version == '1.63.0'
217220 run : |
218- cargo update -p regex --precise "1.7.3"
221+ cargo update -p tokio --precise "1.38.1"
222+ cargo update -p tokio-util --precise "0.7.11"
219223 cargo update -p home --precise "0.5.5"
224+ cargo update -p regex --precise "1.7.3"
225+ cargo update -p security-framework-sys --precise "2.11.1"
220226 - name : Test
221227 run : cargo test --features test-hardware-signer
0 commit comments