Skip to content

Commit 7ade569

Browse files
committed
ci: improve audit and format caching
1 parent 9c34711 commit 7ade569

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/audit-and-format.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,13 @@ jobs:
2929
~/.cargo/registry/cache/
3030
~/.cargo/git/db/
3131
target/
32-
key: ${{ runner.os }}-cargo-audit-${{ env.RUST_VERSION_HASH }}-${{ hashFiles('./Cargo.lock') }}
32+
~/.cargo/config
33+
Cargo.lock
34+
key: ${{ runner.os }}-cargo-audit-${{ env.RUST_VERSION_HASH }}-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('**/*.rs') }}
35+
restore-keys: |
36+
${{ runner.os }}-cargo-audit-${{ env.RUST_VERSION_HASH }}-
37+
${{ runner.os }}-cargo-audit-
38+
${{ runner.os }}-
3339
3440
- name: Run audit
3541
run: |

0 commit comments

Comments
 (0)