Skip to content

Commit 9cc93e6

Browse files
nathaniel-broughhathach
authored andcommitted
.github: Add fuzzer builder
1 parent 92b5f2d commit 9cc93e6

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

.github/workflows/build_fuzzers.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build Fuzzer
2+
3+
on:
4+
pull_request:
5+
push:
6+
release:
7+
types:
8+
- created
9+
10+
jobs:
11+
# ---------------------------------------
12+
# Build all no-family (orphaned) boards
13+
# ---------------------------------------
14+
build-board:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
fuzz_harness:
20+
- "device/cdc"
21+
- "device/msc"
22+
23+
steps:
24+
- name: Setup Python
25+
uses: actions/setup-python@v3
26+
27+
- name: Checkout TinyUSB
28+
uses: actions/checkout@v3
29+
30+
- name: Fetch deps
31+
run: sudo apt update && sudo apt install libc++abi-dev libc++-dev
32+
- name: Build Fuzzer
33+
run: make CC=clang CXX=clang++ -C fuzz/${{ matrix.fuzz_harness }}

fuzz/rules.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ LIBS_GCC ?= -lm
1515
LIBS += $(LIBS_GCC)
1616

1717
ifneq ($(BOARD), spresense)
18-
LIBS += -lc -Wl,-Bstatic -lc++ -lc++abi -Wl,-Bdynamic
18+
LIBS += -lc -Wl,-Bstatic -lc++ -Wl,-Bdynamic
1919
endif
2020

2121
# TinyUSB Stack source

0 commit comments

Comments
 (0)