Skip to content

Commit 845a634

Browse files
committed
better caching
1 parent b971c6e commit 845a634

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,18 @@ jobs:
2929
override: true
3030
components: rustfmt, clippy
3131
- name: Cache dependencies
32-
uses: Swatinem/rust-cache@v2
32+
uses: actions/cache@v4
3333
with:
34-
key: ci-${{ matrix.os }}
34+
path: |
35+
~/.cargo/bin
36+
~/.cargo/.crates.toml
37+
~/.cargo/.crates2.json
38+
~/.cargo/registry
39+
~/.cargo/git
40+
target
41+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
42+
restore-keys: |
43+
${{ runner.os }}-cargo-
3544
- name: Lint
3645
run: cargo clippy --all-targets
3746
- name: Prepare driver and browsers

0 commit comments

Comments
 (0)