-
Notifications
You must be signed in to change notification settings - Fork 96
59 lines (50 loc) · 1.54 KB
/
fuzzing-regression-test.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
# Subzero regression test for bugs discovered with fuzz testing
name: "Fuzzing Regression Test"
on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
# Daily at 1am
- cron: '0 1 * * *'
jobs:
fuzzing-regression-test:
name: "Fuzzing Regression Test"
runs-on: ubuntu-latest
defaults:
run:
shell: bash -euxo pipefail {0}
strategy:
fail-fast: false
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2
submodules: 'recursive'
- name: Init Hermit
uses: cashapp/activate-hermit@v1
- name: Install Clang
run: |
sudo apt-get update
sudo apt install clang -y
- name: Install python packages
run: |
cd ${{ github.workspace }}
pip install --upgrade pip
pip install -r ./core/requirements.txt
# Build CORE with ASAN, UBSAN, and libfuzzer
- name: Build Subzero Core (ASAN+UBSAN+FUZZER)
run: |
cd ${{ github.workspace }}
export CC=`which clang`
export CXX=`which clang++`
./scripts/build_core.sh -DENABLE_ASAN=ON -DENABLE_UBSAN=ON -DENABLE_FUZZER=ON
- name: Run Subzero CORE Fuzzing regression test
run: |
cd ${{ github.workspace }}
./core/build/subzero_fuzzer-testnet ./core/fuzzing_regression_test_inputs/*