Skip to content

Commit 6fa4089

Browse files
authored
ci(cache): fix windows (#295)
1 parent b32c72d commit 6fa4089

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/benchmark.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ jobs:
2020
if: matrix.os != 'macos-latest' # Cache causes errors on macOS
2121
with:
2222
path: |
23-
~/.cargo/registry
24-
~/.cargo/git
23+
~/.cargo
2524
target
2625
key: ${{ github.job }}-Linux-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }}
2726
restore-keys: |

.github/workflows/clippy.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ jobs:
2727
if: matrix.os != 'macos-latest' # Cache causes errors on macOS
2828
with:
2929
path: |
30-
~/.cargo/registry
31-
~/.cargo/git
30+
~/.cargo
3231
target
3332
key: ${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }}
3433
restore-keys: |

.github/workflows/deploy.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,7 @@ jobs:
439439
if: matrix.os != 'macos-latest' # Cache causes errors on macOS
440440
with:
441441
path: |
442-
~/.cargo/registry
443-
~/.cargo/git
442+
~/.cargo
444443
target
445444
key: ${{ github.job }}-Linux-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }}
446445
restore-keys: |

.github/workflows/test.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ jobs:
2828
if: matrix.os != 'macos-latest' # Cache causes errors on macOS
2929
with:
3030
path: |
31-
~/.cargo/registry
32-
~/.cargo/git
31+
~/.cargo
3332
target
3433
key: ${{ github.job }}-${{ runner.os }}-${{ hashFiles('rust-toolchain') }}-${{ hashFiles('**/Cargo.lock') }}
3534
restore-keys: |

0 commit comments

Comments
 (0)