.github: Add fuzzer builder

This commit is contained in:
Nathaniel Brough 2022-11-10 02:40:13 +00:00 committed by hathach
parent 92b5f2d2e8
commit 9cc93e6d41
2 changed files with 34 additions and 1 deletions

33
.github/workflows/build_fuzzers.yml vendored Normal file
View File

@ -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 }}

View File

@ -15,7 +15,7 @@ LIBS_GCC ?= -lm
LIBS += $(LIBS_GCC)
ifneq ($(BOARD), spresense)
LIBS += -lc -Wl,-Bstatic -lc++ -lc++abi -Wl,-Bdynamic
LIBS += -lc -Wl,-Bstatic -lc++ -Wl,-Bdynamic
endif
# TinyUSB Stack source