File: fuzz.yml

package info (click to toggle)
rust-smartstring 1.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 260 kB
  • sloc: makefile: 2
file content (56 lines) | stat: -rw-r--r-- 1,446 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: libFuzzer

on:
  push:
  pull_request:
  schedule:
    - cron: "8 0 * * *"

jobs:
  fuzz:
    name: libFuzzer
    runs-on: ubuntu-latest
    strategy:
      fail-fast: false
      matrix:
        target:
          - ordering_compact
          - smartstring_compact
          - smartstring_lazycompact
    steps:
      - uses: actions/checkout@v2
        name: Checkout project
      - uses: actions/cache@v1
        name: Cache corpus
        id: cache-corpus
        with:
          path: fuzz/corpus/${{ matrix.target }}
          key: fuzz-corpus-${{ matrix.target }}-${{ github.run_id }}
          restore-keys: |
            fuzz-corpus-${{ matrix.target }}-
      - uses: actions-rs/toolchain@v1
        name: Install Rust
        with:
          profile: minimal
          toolchain: nightly
          override: true
      - uses: actions-rs/install@v0.1
        name: Install cargo-fuzz
        with:
          crate: cargo-fuzz
          version: latest
          use-tool-cache: true
      - name: Fuzz for 2 minutes
        run: cargo fuzz run ${{ matrix.target }} -- -max_total_time=120 # seconds
      - uses: actions/upload-artifact@v1
        name: Publish artifacts
        if: always()
        with:
          name: fuzz-artifacts
          path: fuzz/artifacts
      - uses: actions/upload-artifact@v2
        name: Publish corpus
        if: always()
        with:
          name: fuzz-corpus
          path: fuzz/corpus