Skip to content

Commit a321261

Browse files
authored
Merge pull request #191 from rust-secure-code/fix-ci-again
Switch from broken generic cache action to a Rust-specific one
2 parents 058daff + b4a32b9 commit a321261

File tree

3 files changed

+3
-24
lines changed

3 files changed

+3
-24
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@ jobs:
1616
runs-on: ${{ matrix.platform }}
1717
steps:
1818
- uses: actions/checkout@v2
19-
- uses: actions/cache@v1
20-
with:
21-
path: ~/.cargo/registry
22-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }}
23-
- uses: actions/cache@v1
24-
with:
25-
path: ~/.cargo/git
26-
key: ${{ runner.os }}-cargo-index-${{ hashFiles('Cargo.lock') }}
19+
- uses: swatinem/rust-cache@v2
2720
- uses: dtolnay/rust-toolchain@stable
2821
with:
2922
toolchain: ${{ matrix.toolchain }}

.github/workflows/mac.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@ jobs:
1616
runs-on: ${{ matrix.platform }}
1717
steps:
1818
- uses: actions/checkout@v2
19-
- uses: actions/cache@v1
20-
with:
21-
path: ~/.cargo/registry
22-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }}
23-
- uses: actions/cache@v1
24-
with:
25-
path: ~/.cargo/git
26-
key: ${{ runner.os }}-cargo-index-${{ hashFiles('Cargo.lock') }}
19+
- uses: swatinem/rust-cache@v2
2720
- uses: dtolnay/rust-toolchain@stable
2821
with:
2922
toolchain: ${{ matrix.toolchain }}

.github/workflows/windows.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,7 @@ jobs:
1616
runs-on: ${{ matrix.platform }}
1717
steps:
1818
- uses: actions/checkout@v2
19-
- uses: actions/cache@v1
20-
with:
21-
path: ~/.cargo/registry
22-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('Cargo.lock') }}
23-
- uses: actions/cache@v1
24-
with:
25-
path: ~/.cargo/git
26-
key: ${{ runner.os }}-cargo-index-${{ hashFiles('Cargo.lock') }}
19+
- uses: swatinem/rust-cache@v2
2720
- uses: dtolnay/rust-toolchain@stable
2821
with:
2922
toolchain: ${{ matrix.toolchain }}

0 commit comments

Comments
 (0)