Github action: make corpus cache additive

The old way would just always use the cached corpus from the first run then never update the cache. If I understand this restore-keys configuration, then this should change the behavior to always update the corpus used in this latest run then try to restore from the most recent run the next time around.
This commit is contained in:
Christopher Cole 2022-11-06 19:41:42 -08:00 committed by GitHub
parent 324ccfd14f
commit af1b4145ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,15 +22,21 @@ jobs:
profile: minimal
toolchain: nightly
override: true
- name: Install cargo fuzz
run: cargo install cargo-fuzz
- uses: actions-rs/install@v0.1
name: Install cargo-fuzz
with:
crate: cargo-fuzz
version: latest
use-tool-cache: true
- name: Build
run: cargo build --verbose
- name: Cache fuzzy corpus
uses: actions/cache@v3
with:
path: fuzz/corpus
key: fuzz-corpus
key: fuzz-corpus-${{ github.run_id }}
restore-keys: |
fuzz-corpus-
- name: fuzzy common
run: cargo fuzz run common -- -max_total_time=60
- name: fuzzy notes