Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix caching of target dir for fuzz project #96

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.