Skip to content

Commit e793878

Browse files
committed
ci: cache per rust version
1 parent 930fc48 commit e793878

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/_build-rust.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ jobs:
5252
~/.cargo/registry/cache/
5353
~/.cargo/git/db/
5454
target/
55-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
56-
restore-keys: ${{ runner.os }}-cargo-
55+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ inputs.rust-version }}
56+
restore-keys: ${{ runner.os }}-cargo-${{ inputs.rust-version }}
5757
- run: cargo version
5858
- name: Code Formatting
5959
if: ${{ inputs.do-style-check }}

0 commit comments

Comments
 (0)