Skip to content

Commit 4ee4c6f

Browse files
authored
Merge pull request hathach#1844 from silvergasp/master
feat(ci): Adds oss-fuzz integration on PRs
2 parents 8775d55 + abb95fc commit 4ee4c6f

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/cifuzz.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CIFuzz
2+
on:
3+
pull_request:
4+
branches:
5+
- master
6+
paths:
7+
- '**.c'
8+
- '**.cc'
9+
- '**.cpp'
10+
- '**.cxx'
11+
- '**.h'
12+
jobs:
13+
Fuzzing:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Build Fuzzers
17+
id: build
18+
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
19+
with:
20+
oss-fuzz-project-name: 'tinyusb'
21+
language: c++
22+
- name: Run Fuzzers
23+
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
24+
with:
25+
oss-fuzz-project-name: 'tinyusb'
26+
language: c++
27+
fuzz-seconds: 600
28+
- name: Upload Crash
29+
uses: actions/upload-artifact@v3
30+
if: failure() && steps.build.outcome == 'success'
31+
with:
32+
name: artifacts
33+
path: ./out/artifacts

0 commit comments

Comments
 (0)