mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-22 19:20:52 +00:00
move build Fuzzer into pre-commit
This commit is contained in:
parent
86a3315bcf
commit
bf8f4f9521
37
.github/workflows/build_fuzzers.yml
vendored
37
.github/workflows/build_fuzzers.yml
vendored
@ -1,37 +0,0 @@
|
||||
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"
|
||||
- "device/net"
|
||||
|
||||
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
|
||||
make CC=clang CXX=clang++ -C test/fuzz/${{ matrix.fuzz_harness }} get-deps
|
||||
|
||||
- name: Build Fuzzer
|
||||
run: make CC=clang CXX=clang++ -C test/fuzz/${{ matrix.fuzz_harness }}
|
19
.github/workflows/pre-commit.yml
vendored
19
.github/workflows/pre-commit.yml
vendored
@ -34,4 +34,21 @@ jobs:
|
||||
# Install Ceedling
|
||||
gem install ceedling
|
||||
cd test/unit-test
|
||||
ceedling test:all
|
||||
ceedling test:all
|
||||
|
||||
- name: Fetch deps
|
||||
run: |
|
||||
sudo apt update && sudo apt install libc++abi-dev libc++-dev
|
||||
fuzz_harness=$(ls -d test/fuzz/device/*/ test/fuzz/host/*/)
|
||||
for h in $fuzz_harness
|
||||
do
|
||||
make $h get-deps
|
||||
done
|
||||
|
||||
- name: Build Fuzzer
|
||||
run: |
|
||||
fuzz_harness=$(ls -d test/fuzz/device/*/ test/fuzz/host/*/)
|
||||
for h in $fuzz_harness
|
||||
do
|
||||
make $h all
|
||||
done
|
||||
|
@ -16,9 +16,9 @@ __check_defined = \
|
||||
|
||||
#-------------- Fuzz harness compiler ------------
|
||||
|
||||
CC ?= clang
|
||||
CXX ?= clang++
|
||||
GDB ?= gdb
|
||||
CC = clang
|
||||
CXX = clang++
|
||||
GDB = gdb
|
||||
OBJCOPY = objcopy
|
||||
SIZE = size
|
||||
MKDIR = mkdir
|
||||
|
Loading…
x
Reference in New Issue
Block a user