Skip to content

Commit 2f75d26

Browse files
committed
Add LKL fuzzers tests to github CI.
Move lkl-fuzzing test from tests group into a dedicated entry. Building fuzzers target generates fuzzer bineries and produces no test binaries (e.g. boot, disk, etc). Enable MMU and libprotobuf-mutator for testing LKL fuzzers in CI. Signed-off-by: Eugene Rodionov <[email protected]>
1 parent 0ca4f0d commit 2f75d26

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ jobs:
3737
runs_on: ubuntu-22.04
3838
shell: bash
3939
build_options: "LLVM=1 CROSS_COMPILE=x86_64-linux-gnu"
40-
- displayTargetName: lkl-fuzzers
41-
os: unix
42-
runs_on: ubuntu-22.04
43-
shell: bash
44-
build_options: "LKL_FUZZING=1 fuzzers"
4540
- displayTargetName: zpoline
4641
# maybe integrate with default Linux build once the function becomes stable
4742
os: unix
@@ -178,3 +173,27 @@ jobs:
178173
run: sudo pip install ply GitPython
179174
- name: Check coding style
180175
run: tools/lkl/scripts/checkpatch.sh
176+
177+
fuzzers:
178+
runs-on: ubuntu-22.04
179+
name: fuzzers
180+
env:
181+
PROTOBUF_MUTATOR_DIR: /tmp/libprotobuf-mutator
182+
steps:
183+
- name: Checkout
184+
with:
185+
fetch-depth: 0
186+
uses: actions/checkout@v4
187+
- name: Install clang toolchain
188+
run: |
189+
sudo apt update -y
190+
sudo apt install -y clang lld llvm
191+
- name: Install libprotobuf-mutator prerequisites
192+
run: |
193+
sudo apt update -y
194+
sudo apt install -y binutils cmake ninja-build liblzma-dev libz-dev \
195+
pkg-config autoconf libtool
196+
- name: Build libprotobuf-mutator
197+
run: tools/lkl/scripts/libprotobuf-mutator-build.sh
198+
- name: Build fuzzers
199+
run: make -j4 -C tools/lkl LKL_FUZZING=1 MMU=1 fuzzers

0 commit comments

Comments
 (0)