@@ -16,12 +16,13 @@ jobs:
16
16
run : echo "rust_version=$(cat rust-version)" >> $GITHUB_OUTPUT
17
17
18
18
build-test :
19
+ needs : prepare
19
20
name : Build and test
20
21
runs-on : ubuntu-latest
21
22
strategy :
22
23
matrix :
23
24
rust :
24
- - version : stable
25
+ - version : ${{ needs.prepare.outputs.rust_version }}
25
26
clippy : true
26
27
- version : 1.63.0 # MSRV
27
28
features :
60
61
run : cargo test --workspace --exclude 'example_*' ${{ matrix.features }}
61
62
62
63
check-no-std :
64
+ needs : prepare
63
65
name : Check no_std
64
66
runs-on : ubuntu-latest
65
67
steps :
68
70
- name : Install Rust toolchain
69
71
uses : actions-rs/toolchain@v1
70
72
with :
71
- toolchain : stable
73
+ toolchain : ${{ needs.prepare.outputs.rust_version }}
72
74
override : true
73
75
profile : minimal
74
76
# target: "thumbv6m-none-eabi"
88
90
run : cargo check --no-default-features --features miniscript/no-std,bdk_chain/hashbrown
89
91
90
92
check-wasm :
93
+ needs : prepare
91
94
name : Check WASM
92
95
runs-on : ubuntu-20.04
93
96
env :
@@ -103,7 +106,7 @@ jobs:
103
106
- name : Install Rust toolchain
104
107
uses : actions-rs/toolchain@v1
105
108
with :
106
- toolchain : stable
109
+ toolchain : ${{ needs.prepare.outputs.rust_version }}
107
110
override : true
108
111
profile : minimal
109
112
target : " wasm32-unknown-unknown"
@@ -117,6 +120,7 @@ jobs:
117
120
run : cargo check --target wasm32-unknown-unknown --no-default-features --features miniscript/no-std,bdk_chain/hashbrown,async
118
121
119
122
fmt :
123
+ needs : prepare
120
124
name : Rust fmt
121
125
runs-on : ubuntu-latest
122
126
steps :
@@ -125,7 +129,7 @@ jobs:
125
129
- name : Install Rust toolchain
126
130
uses : actions-rs/toolchain@v1
127
131
with :
128
- toolchain : stable
132
+ toolchain : ${{ needs.prepare.outputs.rust_version }}
129
133
override : true
130
134
profile : minimal
131
135
components : rustfmt
@@ -153,6 +157,7 @@ jobs:
153
157
args : --all-features --all-targets -- -D warnings
154
158
155
159
build-examples :
160
+ needs : prepare
156
161
name : Build & Test Examples
157
162
runs-on : ubuntu-latest
158
163
strategy :
@@ -172,7 +177,7 @@ jobs:
172
177
- name : Install Rust toolchain
173
178
uses : actions-rs/toolchain@v1
174
179
with :
175
- toolchain : stable
180
+ toolchain : ${{ needs.prepare.outputs.rust_version }}
176
181
override : true
177
182
profile : minimal
178
183
- name : Rust Cache
0 commit comments