Skip to content

Commit b02e4fe

Browse files
committed
ci: use cache keys including build type for build data caching
1 parent 3d89388 commit b02e4fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
uses: actions/cache@v4
4949
with:
5050
path: ./target/
51-
key: rust-build-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Cargo.toml', 'Cargo.lock', 'rust-toolchain') }}
51+
key: rust-build-${{ runner.os }}-${{ runner.arch }}-debug-${{ hashFiles('Cargo.toml', 'Cargo.lock', 'rust-toolchain') }}
5252

5353
- name: Lint rust
5454
run: nix develop -c bash -c 'mkdir www/build && cargo clippy && cargo deny check --hide-inclusion-graph && cargo fmt --check'
@@ -94,7 +94,7 @@ jobs:
9494
uses: actions/cache@v4
9595
with:
9696
path: ./target/
97-
key: rust-build-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('Cargo.toml', 'Cargo.lock', 'rust-toolchain') }}
97+
key: rust-build-${{ runner.os }}-${{ runner.arch }}${{ matrix.features != '' && format('-{0}-', matrix.features) || '' }}${{ hashFiles('Cargo.toml', 'Cargo.lock', 'rust-toolchain') }}
9898

9999
- name: Build web
100100
run: nix develop -c bash -c 'cd www && bun install --locked && bun run build'

0 commit comments

Comments
 (0)