-
Notifications
You must be signed in to change notification settings - Fork 55
59 lines (47 loc) · 1.28 KB
/
fuzz.yml
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
57
58
59
on:
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:
name: Fuzzing Test
env:
AS: nasm
AR_x86_64_unknown_none: llvm-ar
CC_x86_64_unknown_none: clang
RUST_TOOLCHAIN: nightly-2023-12-31
TOOLCHAIN_PROFILE: minimal
jobs:
test:
name: Fuzzing Test
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
runs-on: ${{ matrix.os }}
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
components: rust-src, llvm-tools-preview
- name: Run cargo install cargo-xbuild
run: cargo install cargo-xbuild
- name: install NASM
uses: ilammy/setup-nasm@v1
- name: Install AFL (Linux)
run: cargo install cargo-afl
if: runner.os == 'Linux'
- name: Install Cargo-Fuzz (Linux)
run: cargo +stable install cargo-fuzz
if: runner.os == 'Linux'
- name: Preparation work
run: bash sh_script/preparation.sh
- name: Run all afl fuzzing test cases (Linux)
run: make afl-test
- name: Run all libfuzzer fuzzing test cases (Linux)
run: make libfuzzer-test