Skip to content

Commit

Permalink
Merge pull request #96 from kdarkhan/fuzz-caching-fix
Browse files Browse the repository at this point in the history
Fix caching of `target` dir for `fuzz` project
  • Loading branch information
mgeisler authored Oct 5, 2023
2 parents 92d3514 + 963ba2f commit 941a188
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
uses: actions/checkout@v3

- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}

- name: Test
run: cargo test
Expand All @@ -35,19 +37,18 @@ jobs:

- uses: Swatinem/rust-cache@v2
with:
workspaces: fuzz -> target
# Default is "v0-rust"
# Use a separate key to prevent collision with main cache
prefix-key: "fuzz"
# Cache only on main build
save-if: ${{ github.ref == 'refs/heads/main' }}
cache-directories: |
i18n-helpers/fuzz/target
i18n-helpers/fuzz/corpus
- name: Install cargo-fuzz
run: cargo install cargo-fuzz

- name: Cache fuzz corpus
uses: actions/cache@v3
with:
path: fuzz/corpus
key: fuzz-corpus-${{ github.run_id }}
restore-keys: |
fuzz-corpus
- name: Run group_events fuzzer and minimize corpus
run: |
cd i18n-helpers
Expand Down
7 changes: 7 additions & 0 deletions i18n-helpers/fuzz/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 941a188

Please sign in to comment.