Skip to content

Commit 1cbb155

Browse files
committed
diy rust cache
1 parent 042dec9 commit 1cbb155

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.github/workflows/ci.yml

+24-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,18 @@ jobs:
1818
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659
1919
with:
2020
environments: default lint
21-
- uses: Swatinem/rust-cache@v2
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
24+
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-${{ hashFiles('**/Cargo.lock') }}
32+
restore-keys: ${{ runner.os }}-cargo-
2233
- name: pre-commit
2334
run: pixi run pre-commit-run --color=always --show-diff-on-failure
2435

@@ -34,6 +45,17 @@ jobs:
3445
fetch-depth: 0
3546
- name: Set up pixi
3647
uses: prefix-dev/setup-pixi@ba3bb36eb2066252b2363392b7739741bb777659
37-
- uses: Swatinem/rust-cache@v2
48+
- name: Set up cargo cache # use https://github.com/Swatinem/rust-cache once whitelisted
49+
uses: actions/cache@v3
50+
continue-on-error: false
51+
with:
52+
path: |
53+
~/.cargo/bin/
54+
~/.cargo/registry/index/
55+
~/.cargo/registry/cache/
56+
~/.cargo/git/db/
57+
target/
58+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
59+
restore-keys: ${{ runner.os }}-cargo-
3860
- name: Run test
3961
run: pixi run test

0 commit comments

Comments
 (0)