-
Notifications
You must be signed in to change notification settings - Fork 22
55 lines (44 loc) · 1.53 KB
/
fuzz.yml
File metadata and controls
55 lines (44 loc) · 1.53 KB
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
# This workflow just builds the fuzz targets without running them.
name: Daily Fuzz Build
on:
schedule:
- cron: "0 1 * * *"
permissions: read-all
jobs:
build-fuzz-targets:
name: Build fuzz targets
runs-on: [matterlabs-ci-runner]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy, rustfmt
rustflags: ""
- name: Setup
run: |
rustup set profile minimal
rustup target add riscv32i-unknown-none-elf
cargo install cargo-binutils
rustup component add llvm-tools-preview
rustup component add rust-src
- name: Compile for RISC-V
working-directory: ./zksync_os
run: ./dump_bin.sh --type for-tests
- name: Compile for forward running
run: cargo build --release
- name: Install cargo-fuzz
run: cargo install cargo-fuzz
- name: Build fuzz tests
run: |
cd tests/fuzzer
cargo fuzz build -D
- name: Run regression tests
run: |
cd tests/fuzzer
./fuzz.sh regression
- name: Run smoke fuzz tests
run: |
cd tests/fuzzer
./fuzz.sh smoke