Skip to content

Commit f6689ba

Browse files
committed
Adjust fuzzing to run on main branch only
1 parent 46c43ee commit f6689ba

File tree

2 files changed

+29
-26
lines changed

2 files changed

+29
-26
lines changed

.github/workflows/cifuzz.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/fuzzing.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Fuzzing
2+
on:
3+
push:
4+
branches: ["master"]
5+
6+
jobs:
7+
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: "libmodbus"
15+
dry-run: false
16+
language: c
17+
- name: Run Fuzzers
18+
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
19+
with:
20+
oss-fuzz-project-name: "libmodbus"
21+
fuzz-seconds: 300
22+
dry-run: false
23+
language: c
24+
- name: Upload artifacts
25+
uses: actions/upload-artifact@v3
26+
if: failure() && steps.build.outcome == 'success'
27+
with:
28+
name: artifacts
29+
path: ./out/artifacts

0 commit comments

Comments
 (0)