Skip to content

Commit 4899703

Browse files
tottotoseanmonstar
authored andcommitted
chore(ci): cache rust dependency
1 parent e2c223a commit 4899703

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/CI.yml

+10
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:

0 commit comments

Comments
 (0)