File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 30
30
uses : dtolnay/rust-toolchain@stable
31
31
with :
32
32
components : clippy
33
+ - name : Cache Rust workspace
34
+ uses : Swatinem/rust-cache@v2
33
35
- name : Cargo check
34
36
run : cargo check --all-features --all-targets
35
37
- name : Cargo clippy
85
87
uses : actions/checkout@v4
86
88
- name : Setup Rust toolchain
87
89
uses : dtolnay/rust-toolchain@stable
90
+ - name : Cache Rust workspace
91
+ uses : Swatinem/rust-cache@v2
88
92
- name : Cargo test
89
93
run : cargo test --release --all-features
90
94
@@ -151,6 +155,10 @@ jobs:
151
155
uses : dtolnay/rust-toolchain@stable
152
156
with :
153
157
targets : ${{ matrix.target }}
158
+ - name : Cache Rust workspace
159
+ uses : Swatinem/rust-cache@v2
160
+ with :
161
+ key : ${{ matrix.target }}
154
162
- name : Cargo build
155
163
run : >
156
164
cargo ${{ matrix.build }} --profile ${{ env.BUILD_PROFILE }} --target ${{ matrix.target }}
@@ -202,6 +210,10 @@ jobs:
202
210
uses : dtolnay/rust-toolchain@stable
203
211
with :
204
212
targets : ${{ matrix.target }}
213
+ - name : Cache Rust workspace
214
+ uses : Swatinem/rust-cache@v2
215
+ with :
216
+ key : ${{ matrix.target }}
205
217
- name : Cargo build
206
218
run : >
207
219
cargo build --profile ${{ env.BUILD_PROFILE }} --target ${{ matrix.target }}
You can’t perform that action at this time.
0 commit comments