Skip to content

Commit dcf69d9

Browse files
committed
change to use cache restore and save
1 parent edb5b65 commit dcf69d9

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/fuzzing.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,41 +24,43 @@ jobs:
2424
- name: Install `cargo-fuzz`
2525
run: cargo install cargo-fuzz
2626
- uses: Swatinem/rust-cache@v2
27+
- name: Restore Cached Corpus
28+
uses: actions/cache/restore@v3
29+
with:
30+
key: corpus-cache
31+
path: |
32+
fuzz/
33+
- name: DEBUG (TEMP)
34+
run: ls -la
2735
- name: Run fuzz_date for XX seconds
2836
shell: bash
2937
run: |
30-
## Run it
31-
cd fuzz
3238
cargo +nightly fuzz run fuzz_date -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0
3339
- name: Run fuzz_test for XX seconds
3440
continue-on-error: true
3541
shell: bash
3642
run: |
37-
## Run it
38-
cd fuzz
3943
cargo +nightly fuzz run fuzz_test -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0
4044
- name: Run fuzz_expr for XX seconds
4145
continue-on-error: true
4246
shell: bash
4347
run: |
44-
## Run it
45-
cd fuzz
4648
cargo +nightly fuzz run fuzz_expr -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0
4749
- name: Run fuzz_parse_glob for XX seconds
4850
shell: bash
4951
run: |
50-
## Run it
51-
cd fuzz
5252
cargo +nightly fuzz run fuzz_parse_glob -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0
5353
- name: Run fuzz_parse_size for XX seconds
5454
shell: bash
5555
run: |
56-
## Run it
57-
cd fuzz
5856
cargo +nightly fuzz run fuzz_parse_size -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0
5957
- name: Run fuzz_parse_time for XX seconds
6058
shell: bash
6159
run: |
62-
## Run it
63-
cd fuzz
6460
cargo +nightly fuzz run fuzz_parse_time -- -max_total_time=${{ env.RUN_FOR }} -detect_leaks=0
61+
- name: Save Corpus Cache
62+
uses: actions/cache/save@v3
63+
with:
64+
key: corpus-cache
65+
path: |
66+
fuzz/corpus

0 commit comments

Comments
 (0)