.github: Add fuzzer builder
This commit is contained in:
parent
92b5f2d2e8
commit
9cc93e6d41
|
@ -0,0 +1,33 @@
|
||||||
|
name: Build Fuzzer
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- created
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# ---------------------------------------
|
||||||
|
# Build all no-family (orphaned) boards
|
||||||
|
# ---------------------------------------
|
||||||
|
build-board:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
fuzz_harness:
|
||||||
|
- "device/cdc"
|
||||||
|
- "device/msc"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Setup Python
|
||||||
|
uses: actions/setup-python@v3
|
||||||
|
|
||||||
|
- name: Checkout TinyUSB
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Fetch deps
|
||||||
|
run: sudo apt update && sudo apt install libc++abi-dev libc++-dev
|
||||||
|
- name: Build Fuzzer
|
||||||
|
run: make CC=clang CXX=clang++ -C fuzz/${{ matrix.fuzz_harness }}
|
|
@ -15,7 +15,7 @@ LIBS_GCC ?= -lm
|
||||||
LIBS += $(LIBS_GCC)
|
LIBS += $(LIBS_GCC)
|
||||||
|
|
||||||
ifneq ($(BOARD), spresense)
|
ifneq ($(BOARD), spresense)
|
||||||
LIBS += -lc -Wl,-Bstatic -lc++ -lc++abi -Wl,-Bdynamic
|
LIBS += -lc -Wl,-Bstatic -lc++ -Wl,-Bdynamic
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# TinyUSB Stack source
|
# TinyUSB Stack source
|
||||||
|
|
Loading…
Reference in New Issue