28
28
rust :
29
29
- version : ${{ needs.prepare.outputs.rust_version }}
30
30
clippy : true
31
- - version : 1.85.0 # Overall MSRV
31
+ - version : 1.85.0 # MSRV
32
32
features :
33
33
- --no-default-features --features miniscript/no-std,bdk_chain/hashbrown
34
34
- --all-features
@@ -38,13 +38,11 @@ jobs:
38
38
with :
39
39
persist-credentials : false
40
40
- name : Install Rust toolchain
41
- uses : actions-rs/ toolchain@v1
41
+ uses : actions-rust-lang/setup-rust- toolchain@v1
42
42
with :
43
43
toolchain : ${{ matrix.rust.version }}
44
44
override : true
45
- profile : minimal
46
- - name : Rust Cache
47
-
45
+ cache : true
48
46
- name : Pin dependencies for MSRV
49
47
if : matrix.rust.version == '1.85.0'
50
48
run : ./ci/pin-msrv.sh
@@ -65,14 +63,12 @@ jobs:
65
63
with :
66
64
persist-credentials : false
67
65
- name : Install Rust toolchain
68
- uses : actions-rs/ toolchain@v1
66
+ uses : actions-rust-lang/setup-rust- toolchain@v1
69
67
with :
70
68
toolchain : ${{ needs.prepare.outputs.rust_version }}
71
69
override : true
72
- profile : minimal
70
+ cache : true
73
71
# target: "thumbv6m-none-eabi"
74
- - name : Rust Cache
75
-
76
72
- name : Check bdk_chain
77
73
working-directory : ./crates/chain
78
74
# TODO "--target thumbv6m-none-eabi" should work but currently does not
@@ -99,14 +95,12 @@ jobs:
99
95
- run : sudo apt-get update || exit 1
100
96
- run : sudo apt-get install -y libclang-common-14-dev clang-14 libc6-dev-i386 || exit 1
101
97
- name : Install Rust toolchain
102
- uses : actions-rs/ toolchain@v1
98
+ uses : actions-rust-lang/setup-rust- toolchain@v1
103
99
with :
104
100
toolchain : ${{ needs.prepare.outputs.rust_version }}
105
101
override : true
106
- profile : minimal
102
+ cache : true
107
103
target : " wasm32-unknown-unknown"
108
- - name : Rust Cache
109
-
110
104
- name : Check esplora
111
105
working-directory : ./crates/esplora
112
106
run : cargo check --target wasm32-unknown-unknown --no-default-features --features bdk_core/hashbrown,async
@@ -120,11 +114,10 @@ jobs:
120
114
with :
121
115
persist-credentials : false
122
116
- name : Install Rust toolchain
123
- uses : actions-rs/ toolchain@v1
117
+ uses : actions-rust-lang/setup-rust- toolchain@v1
124
118
with :
125
119
toolchain : nightly
126
120
override : true
127
- profile : minimal
128
121
components : rustfmt
129
122
- name : Check fmt
130
123
run : cargo fmt --all --check
@@ -139,13 +132,12 @@ jobs:
139
132
- uses : actions/checkout@v4
140
133
with :
141
134
persist-credentials : false
142
- - uses : actions-rs/ toolchain@v1
135
+ - uses : actions-rust-lang/setup-rust- toolchain@v1
143
136
with :
144
137
toolchain : ${{ needs.prepare.outputs.rust_version }}
145
138
components : clippy
146
139
override : true
147
- - name : Rust Cache
148
-
140
+ cache : true
149
141
- uses : actions-rs/clippy-check@v1
150
142
with :
151
143
token : ${{ secrets.GITHUB_TOKEN }}
@@ -169,13 +161,11 @@ jobs:
169
161
with :
170
162
persist-credentials : false
171
163
- name : Install Rust toolchain
172
- uses : actions-rs/ toolchain@v1
164
+ uses : actions-rust-lang/setup-rust- toolchain@v1
173
165
with :
174
166
toolchain : ${{ needs.prepare.outputs.rust_version }}
175
167
override : true
176
- profile : minimal
177
- - name : Rust Cache
178
-
168
+ cache : true
179
169
- name : Build
180
170
working-directory : examples/${{ matrix.example-dir }}
181
171
run : cargo build
0 commit comments