Skip to content

Commit d37e4bb

Browse files
authored
use rust-cache
1 parent c10a1d3 commit d37e4bb

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

.github/workflows/ci.yml

+4-22
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,9 @@ jobs:
1818
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659
1919
with:
2020
environments: default lint
21-
- name: Set up cargo cache # use https://github.com/Swatinem/rust-cache once whitelisted
22-
uses: actions/cache@v3
23-
continue-on-error: false
21+
- uses: Swatinem/rust-cache@v2
2422
with:
25-
path: |
26-
~/.cargo/bin/
27-
~/.cargo/registry/index/
28-
~/.cargo/registry/cache/
29-
~/.cargo/git/db/
30-
target/
31-
key: ${{ runner.os }}-cargo-lint-${{ hashFiles('**/Cargo.lock') }}
32-
restore-keys: ${{ runner.os }}-cargo-
23+
key: "pre-commit"
3324
- name: pre-commit
3425
run: pixi run pre-commit-run --color=always --show-diff-on-failure
3526

@@ -48,17 +39,8 @@ jobs:
4839
fetch-depth: 0
4940
- name: Set up pixi
5041
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659
51-
- name: Set up cargo cache # use https://github.com/Swatinem/rust-cache once whitelisted
52-
uses: actions/cache@v3
53-
continue-on-error: false
42+
- uses: Swatinem/rust-cache@v2
5443
with:
55-
path: |
56-
~/.cargo/bin/
57-
~/.cargo/registry/index/
58-
~/.cargo/registry/cache/
59-
~/.cargo/git/db/
60-
target/
61-
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
62-
restore-keys: ${{ runner.os }}-cargo-
44+
key: "tests"
6345
- name: Run test
6446
run: pixi run test

0 commit comments

Comments
 (0)