Skip to content

Commit c0adea7

Browse files
committed
Use Swatinem/rust-cache instead of actions/cache
1 parent 953883a commit c0adea7

File tree

3 files changed

+3
-33
lines changed

3 files changed

+3
-33
lines changed

Diff for: .github/workflows/apple.yml

+1-11
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,7 @@ jobs:
2222
with:
2323
toolchain: stable
2424

25-
- name: Emit rustc version
26-
run: |
27-
rustc --version > .rustc-version
28-
29-
- uses: actions/cache@v4
30-
with:
31-
path: |
32-
~/.cargo/registry
33-
~/.cargo/git
34-
target
35-
key: ${{ runner.os }}-pythonbuild-${{ hashFiles('Cargo.lock', '.rustc-version') }}
25+
- uses: Swatinem/rust-cache@v2
3626

3727
- name: Build
3828
run: |

Diff for: .github/workflows/linux.yml

+1-11
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,7 @@ jobs:
2727
with:
2828
toolchain: stable
2929

30-
- name: Emit rustc version
31-
run: |
32-
rustc --version > .rustc-version
33-
34-
- uses: actions/cache@v4
35-
with:
36-
path: |
37-
~/.cargo/registry
38-
~/.cargo/git
39-
target
40-
key: ${{ runner.os }}-pythonbuild-${{ hashFiles('Cargo.lock', '.rustc-version') }}
30+
- uses: Swatinem/rust-cache@v2
4131

4232
- name: Build
4333
run: |

Diff for: .github/workflows/windows.yml

+1-11
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,7 @@ jobs:
2222
with:
2323
toolchain: stable
2424

25-
- name: Emit rustc version
26-
run: |
27-
rustc --version > .rustc-version
28-
29-
- uses: actions/cache@v4
30-
with:
31-
path: |
32-
C:/Rust/.cargo/registry
33-
C:/Rust/.cargo/git
34-
target
35-
key: ${{ runner.os }}-pythonbuild-${{ hashFiles('Cargo.lock', '.rustc-version') }}
25+
- uses: Swatinem/rust-cache@v2
3626

3727
- name: Build
3828
run: |

0 commit comments

Comments
 (0)