Skip to content

Commit

Permalink
Merge pull request #217 from PJK/fuzzers-short
Browse files Browse the repository at this point in the history
Split fuzzers into short and long running
  • Loading branch information
PJK committed Mar 19, 2022
2 parents a1d3a2e + acc1324 commit 937c6b7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/fuzz-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# A quick CIFuzz sanity check. Fuzzing time is kept low provide fast feedback
# on PRs; fuzz.yml schedules a daily long-running fuzzing job.
name: CIFuzz PR check
on: [pull_request]
jobs:
Fuzzing:
runs-on: ubuntu-latest
steps:
- name: Build Fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: 'libcbor'
dry-run: false
- name: Smoke Test Fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: 'libcbor'
fuzz-seconds: 10
dry-run: false
- name: Upload Crash
uses: actions/upload-artifact@v1
if: failure()
with:
name: artifacts
path: ./out/artifacts
6 changes: 4 additions & 2 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: CIFuzz
on: [pull_request]
on:
schedule:
- cron: '0 4 * * *'
jobs:
Fuzzing:
runs-on: ubuntu-latest
Expand All @@ -13,7 +15,7 @@ jobs:
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: 'libcbor'
fuzz-seconds: 600
fuzz-seconds: 21600 # 6 hours
dry-run: false
- name: Upload Crash
uses: actions/upload-artifact@v1
Expand Down

0 comments on commit 937c6b7

Please sign in to comment.