Skip to content

Commit 19c1495

Browse files
committed
persist fuzz corpus between CI runs
1 parent e9e13be commit 19c1495

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,16 @@ jobs:
267267
- name: Install Rust ${{ env.TOOLCHAIN }} toolchain
268268
run: |
269269
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain ${{ env.TOOLCHAIN }}
270+
- name: Restore/Save persistent honggfuzz corpus
271+
uses: actions/cache@v4
272+
with:
273+
path: fuzz/hfuzz_workspace
274+
key: fuzz-corpus-${{ github.ref }}-${{ github.sha }}
275+
restore-keys: |
276+
# First, try to restore the latest cache from this PR
277+
fuzz-corpus-${{ github.ref }}-
278+
# If it's a new PR (or not a PR), restore the latest from main
279+
fuzz-corpus-refs/heads/main-
270280
- name: Sanity check fuzz targets on Rust ${{ env.TOOLCHAIN }}
271281
run: |
272282
cd fuzz

0 commit comments

Comments
 (0)