Skip to content

Commit 8a57fd0

Browse files
committed
Add cifuzz
1 parent 1d8634a commit 8a57fd0

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/cpp.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,28 @@ on: [push]
44

55
jobs:
66

7+
short_fuzzing:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Build fuzzers
11+
id: build
12+
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
13+
with:
14+
oss-fuzz-project-name: 'uwebsockets'
15+
language: c++
16+
- name: Run fuzzers
17+
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
18+
with:
19+
oss-fuzz-project-name: 'uwebsockets'
20+
language: c++
21+
fuzz-seconds: 600
22+
- name: Upload crash
23+
uses: actions/upload-artifact@v3
24+
if: failure() && steps.build.outcome == 'success'
25+
with:
26+
name: artifacts
27+
path: ./out/artifacts
28+
729
build_windows:
830
runs-on: windows-latest
931
steps:

0 commit comments

Comments
 (0)