Skip to content

Commit c08fdff

Browse files
committed
Use Swatinem/rust-cache instead of actions/cache
1 parent e8b031b commit c08fdff

File tree

3 files changed

+3
-36
lines changed

3 files changed

+3
-36
lines changed

.github/workflows/apple.yml

+1-12
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,7 @@ jobs:
1414
runs-on: 'macos-13'
1515
steps:
1616
- uses: actions/checkout@v4
17-
18-
- name: Emit rustc version
19-
run: |
20-
rustc --version > .rustc-version
21-
22-
- uses: actions/cache@v4
23-
with:
24-
path: |
25-
~/.cargo/registry
26-
~/.cargo/git
27-
target
28-
key: ${{ runner.os }}-pythonbuild-${{ hashFiles('Cargo.lock', '.rustc-version') }}
17+
- uses: Swatinem/rust-cache@v2
2918

3019
- name: Build
3120
run: |

.github/workflows/linux.yml

+1-12
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,7 @@ jobs:
1919
sudo apt install -y --no-install-recommends libssl-dev pkg-config
2020
2121
- uses: actions/checkout@v4
22-
23-
- name: Emit rustc version
24-
run: |
25-
rustc --version > .rustc-version
26-
27-
- uses: actions/cache@v4
28-
with:
29-
path: |
30-
~/.cargo/registry
31-
~/.cargo/git
32-
target
33-
key: ${{ runner.os }}-pythonbuild-${{ hashFiles('Cargo.lock', '.rustc-version') }}
22+
- uses: Swatinem/rust-cache@v2
3423

3524
- name: Build
3625
run: |

.github/workflows/windows.yml

+1-12
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,7 @@ jobs:
1414
runs-on: 'windows-2022'
1515
steps:
1616
- uses: actions/checkout@v4
17-
18-
- name: Emit rustc version
19-
run: |
20-
rustc --version > .rustc-version
21-
22-
- uses: actions/cache@v4
23-
with:
24-
path: |
25-
C:/Rust/.cargo/registry
26-
C:/Rust/.cargo/git
27-
target
28-
key: ${{ runner.os }}-pythonbuild-${{ hashFiles('Cargo.lock', '.rustc-version') }}
17+
- uses: Swatinem/rust-cache@v2
2918

3019
- name: Build
3120
run: |

0 commit comments

Comments
 (0)