Skip to content

Commit 7151b01

Browse files
committed
ci: fix hash in cache key
1 parent 8ee2b3f commit 7151b01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/_build-rust.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ jobs:
5252
~/.cargo/registry/cache/
5353
~/.cargo/git/db/
5454
target/
55-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ inputs.rust-version }}
55+
# We do not have a Cargo.lock here, so I hash Cargo.toml
56+
key: ${{ runner.os }}-rust-${{ inputs.rust-version }}-cargo-${{ hashFiles('**/Cargo.toml') }}
5657
restore-keys: ${{ runner.os }}-cargo-${{ inputs.rust-version }}
5758
- run: cargo version
5859
- name: Code Formatting

0 commit comments

Comments
 (0)