Skip to content

Commit

Permalink
ci: use cached build for slither job
Browse files Browse the repository at this point in the history
  • Loading branch information
scorpion9979 committed Oct 20, 2023
1 parent 2ca4f7a commit 8e956f9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,16 @@ jobs:
with:
submodules: "recursive"

- name: "Restore the cached build"
uses: "actions/cache/restore@v3"
with:
fail-on-cache-miss: true
key: "foundry-build-${{ github.sha }}"
path: |
cache
out
out-optimized
- name: "Run Slither analysis"
uses: "crytic/[email protected]"
id: "slither"
Expand All @@ -307,6 +317,7 @@ jobs:
sarif: "results.sarif"
solc-version: "0.8.19"
target: "src/"
ignore-compile: true

- name: "Upload SARIF file to GitHub code scanning"
uses: "github/codeql-action/upload-sarif@v2"
Expand Down

0 comments on commit 8e956f9

Please sign in to comment.