Skip to content

Commit 18e7427

Browse files
committed
Fix cache keys
1 parent 3ec707a commit 18e7427

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
~/.cargo/registry
4141
~/.cargo/git
4242
target
43-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
43+
key: ${{ runner.os }}-dev-cargo-${{ hashFiles('**/Cargo.lock') }}
4444
- name: Check (default members)
4545
run: cargo check
4646
- name: Check with examples
@@ -76,7 +76,7 @@ jobs:
7676
~/.cargo/registry
7777
~/.cargo/git
7878
target
79-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
79+
key: ${{ matrix.runner }}-release-cargo-${{ hashFiles('**/Cargo.lock') }}
8080
- name: Build (release)
8181
run: cargo build --release
8282
- name: Test (release)
@@ -101,7 +101,7 @@ jobs:
101101
~/.cargo/registry
102102
~/.cargo/git
103103
target
104-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
104+
key: ${{ runner.os }}-lib-all-cargo-${{ hashFiles('**/Cargo.lock') }}
105105
- name: Build
106106
run: |
107107
cargo build --manifest-path="splashsurf_lib/Cargo.toml" --all-targets --all-features
@@ -131,7 +131,7 @@ jobs:
131131
~/.cargo/registry
132132
~/.cargo/git
133133
target
134-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
134+
key: ${{ runner.os }}-lib-no-default-cargo-${{ hashFiles('**/Cargo.lock') }}
135135
- name: Build
136136
run: |
137137
cargo build --manifest-path="splashsurf_lib/Cargo.toml" --all-targets --no-default-features

0 commit comments

Comments
 (0)