Debian Codegraph @

debian/rust-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 include:
21 - os: ubuntu-24.04-arm
22 target: neon
23
24 steps:
25 - uses: actions/checkout@v2
26 - name: setup
27 uses: actions-rs/toolchain@v1
28 with:
29 profile: minimal
30 toolchain: nightly
31 override: true
32
33 - uses: Swatinem/rust-cache@v1
34 - run: cargo install cargo-fuzz
35
36 - name: Download corpus artifact
37 run: |
38 wget https://nightly.link/mcountryman/simd-adler32/workflows/fuzz.yaml/main/corpus.zip
39 mkdir -p corpus
40 unzip corpus.zip -d corpus
41
42 # keep going if artifact doesn't exist
43 continue-on-error: true
44
45 - name: Run fuzz test (30m)
46 run: |
47 cargo fuzz run ${{ matrix.target }} -- -max_total_time=1800
48
49 - name: Archive artifacts
50 uses: actions/upload-artifact@v2
51 if: failure()
52 with:
53 name: artifacts
54 path: fuzz/artifacts
55
56 # big decision. do we store corpus from failed jobs? for now we don't..
57 - uses: actions/upload-artifact@v2
58 with:
59 name: corpus
60 path: |
61 fuzz/corpus/
62 fuzz/corpus/${{ matrix.target }}