mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-19 15:40:41 +00:00
.github: Add fuzzer builder
This commit is contained in:
parent
92b5f2d2e8
commit
9cc93e6d41
33
.github/workflows/build_fuzzers.yml
vendored
Normal file
33
.github/workflows/build_fuzzers.yml
vendored
Normal 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 }}
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user