Skip to content

Commit 6791311

Browse files
Add CIFuzz GitHub Action (#604)
* Add CIFuzz GitHub Action * Convert yaml to json
1 parent efd4f96 commit 6791311

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/cifuzz.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "CIFuzz",
3+
"on": [
4+
"pull_request"
5+
],
6+
"jobs": {
7+
"Fuzzing": {
8+
"runs-on": "ubuntu-latest",
9+
"steps": [
10+
{
11+
"name": "Build Fuzzers",
12+
"id": "build",
13+
"uses": "google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master",
14+
"with": {
15+
"oss-fuzz-project-name": "bincode",
16+
"language": "rust"
17+
}
18+
},
19+
{
20+
"name": "Run Fuzzers",
21+
"uses": "google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master",
22+
"with": {
23+
"oss-fuzz-project-name": "bincode",
24+
"fuzz-seconds": 300,
25+
"language": "rust"
26+
}
27+
},
28+
{
29+
"name": "Upload Crash",
30+
"uses": "actions/upload-artifact@v3",
31+
"if": "failure() && steps.build.outcome == 'success'",
32+
"with": {
33+
"name": "artifacts",
34+
"path": "./out/artifacts"
35+
}
36+
}
37+
]
38+
}
39+
}
40+
}

0 commit comments

Comments
 (0)