Debian Codegraph @

.cargo/vendor/simd-adler32/.github/workflows/fuzz.yaml

raw
1 name: fuzz
2
3 on:
4 schedule:
5 # Run every 24h
6 - cron: "0 0 * * *"
7
8 defaults:
9 run:
10 working-directory: fuzz
11
12 jobs:
13 fuzz:
14 runs-on: ${{ matrix.os }}
15 strategy:
16 fail-fast: false
17 matrix:
18 os: [ubuntu-latest]
19 target: [avx2, sse2, ssse3]
20
21 steps:
22 - uses: actions/checkout@v2
23 - name: setup
24 uses: actions-rs/toolchain@v1
25 with:
26 profile: minimal
27 toolchain: nightly
28 override: true
29
30 - uses: Swatinem/rust-cache@v1
31 - run: cargo install cargo-fuzz
32
33 - name: Download corpus artifact
34 run: |
35 wget https://nightly.link/mcountryman/simd-adler32/workflows/fuzz.yaml/main/corpus.zip
36 mkdir -p corpus
37 unzip corpus.zip -d corpus
38
39 # keep going if artifact doesn't exist
40 continue-on-error: true
41
42 - name: Run fuzz test (30m)
43 run: |
44 cargo fuzz run ${{ matrix.target }} -- -max_total_time=1800
45
46 - name: Archive artifacts
47 uses: actions/upload-artifact@v2
48 if: failure()
49 with:
50 name: artifacts
51 path: fuzz/artifacts
52
53 # big decision. do we store corpus from failed jobs? for now we don't..
54 - uses: actions/upload-artifact@v2
55 with:
56 name: corpus
57 path: |
58 fuzz/corpus/
59 fuzz/corpus/${{ matrix.target }}