Skip to content

Commit bf8f4f9

Browse files
committed
move build Fuzzer into pre-commit
1 parent 86a3315 commit bf8f4f9

File tree

3 files changed

+21
-41
lines changed

3 files changed

+21
-41
lines changed

.github/workflows/build_fuzzers.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/pre-commit.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,21 @@ jobs:
3434
# Install Ceedling
3535
gem install ceedling
3636
cd test/unit-test
37-
ceedling test:all
37+
ceedling test:all
38+
39+
- name: Fetch deps
40+
run: |
41+
sudo apt update && sudo apt install libc++abi-dev libc++-dev
42+
fuzz_harness=$(ls -d test/fuzz/device/*/ test/fuzz/host/*/)
43+
for h in $fuzz_harness
44+
do
45+
make $h get-deps
46+
done
47+
48+
- name: Build Fuzzer
49+
run: |
50+
fuzz_harness=$(ls -d test/fuzz/device/*/ test/fuzz/host/*/)
51+
for h in $fuzz_harness
52+
do
53+
make $h all
54+
done

test/fuzz/make.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ __check_defined = \
1616

1717
#-------------- Fuzz harness compiler ------------
1818

19-
CC ?= clang
20-
CXX ?= clang++
21-
GDB ?= gdb
19+
CC = clang
20+
CXX = clang++
21+
GDB = gdb
2222
OBJCOPY = objcopy
2323
SIZE = size
2424
MKDIR = mkdir

0 commit comments

Comments
 (0)