Skip to content

Commit 586e687

Browse files
committed
chore(ci): cache rust dependency
1 parent 4dcbb3b commit 586e687

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/CI.yml

+12
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ jobs:
7979
with:
8080
toolchain: ${{ matrix.rust }}
8181

82+
- uses: Swatinem/rust-cache@v2
83+
8284
- name: Test
8385
run: cargo test ${{ matrix.features }}
8486

@@ -108,6 +110,8 @@ jobs:
108110
with:
109111
toolchain: ${{ matrix.rust }}
110112

113+
- uses: Swatinem/rust-cache@v2
114+
111115
- name: Check
112116
run: cargo check --features full
113117

@@ -143,6 +147,8 @@ jobs:
143147
- name: Install cargo-hack
144148
uses: taiki-e/install-action@cargo-hack
145149

150+
- uses: Swatinem/rust-cache@v2
151+
146152
- name: check --feature-powerset
147153
run: cargo hack --no-dev-deps check --feature-powerset --depth 2 --skip ffi
148154

@@ -166,6 +172,8 @@ jobs:
166172
with:
167173
toolchain: ${{ matrix.rust }}
168174

175+
- uses: Swatinem/rust-cache@v2
176+
169177
- name: Check
170178
run: cargo check --features full,backports,deprecated
171179

@@ -185,6 +193,8 @@ jobs:
185193
with:
186194
tool: cbindgen
187195

196+
- uses: Swatinem/rust-cache@v2
197+
188198
- name: Build FFI
189199
run: cargo rustc --features client,http1,http2,ffi --crate-type cdylib
190200
env:
@@ -213,6 +223,8 @@ jobs:
213223
with:
214224
tool: cbindgen
215225

226+
- uses: Swatinem/rust-cache@v2
227+
216228
- name: Build FFI
217229
run: cargo build --features client,http1,http2,ffi
218230
env:

0 commit comments

Comments
 (0)