@@ -16,12 +16,13 @@ jobs:
1616 run : echo "rust_version=$(cat rust-version)" >> $GITHUB_OUTPUT
1717
1818 build-test :
19+ needs : prepare
1920 name : Build and test
2021 runs-on : ubuntu-latest
2122 strategy :
2223 matrix :
2324 rust :
24- - version : stable
25+ - version : ${{ needs.prepare.outputs.rust_version }}
2526 clippy : true
2627 - version : 1.63.0 # MSRV
2728 features :
6061 run : cargo test --workspace --exclude 'example_*' ${{ matrix.features }}
6162
6263 check-no-std :
64+ needs : prepare
6365 name : Check no_std
6466 runs-on : ubuntu-latest
6567 steps :
6870 - name : Install Rust toolchain
6971 uses : actions-rs/toolchain@v1
7072 with :
71- toolchain : stable
73+ toolchain : ${{ needs.prepare.outputs.rust_version }}
7274 override : true
7375 profile : minimal
7476 # target: "thumbv6m-none-eabi"
8890 run : cargo check --no-default-features --features miniscript/no-std,bdk_chain/hashbrown
8991
9092 check-wasm :
93+ needs : prepare
9194 name : Check WASM
9295 runs-on : ubuntu-20.04
9396 env :
@@ -103,7 +106,7 @@ jobs:
103106 - name : Install Rust toolchain
104107 uses : actions-rs/toolchain@v1
105108 with :
106- toolchain : stable
109+ toolchain : ${{ needs.prepare.outputs.rust_version }}
107110 override : true
108111 profile : minimal
109112 target : " wasm32-unknown-unknown"
@@ -117,6 +120,7 @@ jobs:
117120 run : cargo check --target wasm32-unknown-unknown --no-default-features --features miniscript/no-std,bdk_chain/hashbrown,async
118121
119122 fmt :
123+ needs : prepare
120124 name : Rust fmt
121125 runs-on : ubuntu-latest
122126 steps :
@@ -125,7 +129,7 @@ jobs:
125129 - name : Install Rust toolchain
126130 uses : actions-rs/toolchain@v1
127131 with :
128- toolchain : stable
132+ toolchain : ${{ needs.prepare.outputs.rust_version }}
129133 override : true
130134 profile : minimal
131135 components : rustfmt
@@ -153,6 +157,7 @@ jobs:
153157 args : --all-features --all-targets -- -D warnings
154158
155159 build-examples :
160+ needs : prepare
156161 name : Build & Test Examples
157162 runs-on : ubuntu-latest
158163 strategy :
@@ -172,7 +177,7 @@ jobs:
172177 - name : Install Rust toolchain
173178 uses : actions-rs/toolchain@v1
174179 with :
175- toolchain : stable
180+ toolchain : ${{ needs.prepare.outputs.rust_version }}
176181 override : true
177182 profile : minimal
178183 - name : Rust Cache
0 commit comments