Skip to content

Commit

Permalink
feat: add cache to audit
Browse files Browse the repository at this point in the history
  • Loading branch information
maratsh committed Sep 5, 2024
1 parent d655671 commit c7c4853
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,15 @@ jobs:
with:
# Comma separated list of issues to ignore (or configure in audit.toml)
ignore: ${{ inputs.auditIgnore }}

- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ github.ref_name }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ github.ref_name }}
cargo-deny:
name: "License check"
runs-on: ubuntu-24.04
Expand Down Expand Up @@ -62,6 +70,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- *cache-cargo
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -76,6 +85,7 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- *cache-cargo
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down Expand Up @@ -104,7 +114,7 @@ jobs:

release:
if: github.ref == 'refs/heads/main'
needs: [ cargo-deny, check, fmt, test, clippy ]
needs: [ cargo-deny, check, fmt, test, clippy, audit ]
runs-on: ubuntu-24.04

steps:
Expand Down

0 comments on commit c7c4853

Please sign in to comment.