diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2023-05-27 00:59:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-27 00:59:16 -0400 |
commit | 9cea3e1a8d922af4ff255ebabbd896fc7fb28908 (patch) | |
tree | 5ef0056657bd6ec41cc2e5f5305a348d4184d36c | |
parent | a90c32eb730d639df2cf75d89dc2108a7f0d6bce (diff) |
ci: add cache to audit job (#1175)
* ci: add cache to audit job
* always cache, and skip target
* delete registry too
-rw-r--r-- | .github/workflows/audit.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 1dde4ec8..093b393e 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -18,9 +18,17 @@ jobs: with: toolchain: stable + - name: Enable Rust cache + uses: Swatinem/rust-cache@988c164c3d0e93c4dbab36aaf5bbeb77425b2894 # 2.4.0 + with: + cache-targets: false + cache-all-crates: true + cache-on-failure: true + - name: Install cargo-audit run: | cargo install cargo-audit --locked + rm -rf ~/.cargo/registry || echo "no registry to delete" - uses: rustsec/audit-check@dd51754d4e59da7395a4cd9b593f0ff2d61a9b95 # v1.4.1 with: |