2021-05-01 02:30:40 +08:00
|
|
|
---
|
|
|
|
|
|
|
|
# For the actual fuzzer see tools/oss-fuzz/README.
|
2021-05-04 06:11:38 +08:00
|
|
|
# also see
|
|
|
|
# https://google.github.io/oss-fuzz/getting-started/continuous-integration/
|
|
|
|
#
|
|
|
|
# Build and run fuzzer for 5s to check if it runs properly. If it consistently
|
|
|
|
# fails in under 5s you probably did something wrong
|
2021-05-01 02:30:40 +08:00
|
|
|
|
|
|
|
name: Scant fuzz compile
|
|
|
|
|
|
|
|
# 'workflow_dispatch' allows running this workflow manually from the
|
|
|
|
# 'Actions' tab
|
2021-05-04 06:11:38 +08:00
|
|
|
|
2021-05-01 02:30:40 +08:00
|
|
|
# yamllint disable-line rule:truthy
|
2021-05-04 06:11:38 +08:00
|
|
|
on: [pull_request, workflow_dispatch]
|
2021-05-01 02:30:40 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
scant-fuzzer-build:
|
2021-05-04 06:11:38 +08:00
|
|
|
runs-on: ubuntu-latest
|
2021-05-01 02:30:40 +08:00
|
|
|
steps:
|
2021-05-04 06:11:38 +08:00
|
|
|
- name: Build Fuzzers
|
|
|
|
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
|
|
|
|
with:
|
|
|
|
oss-fuzz-project-name: 'sound-open-firmware'
|
2021-05-01 02:30:40 +08:00
|
|
|
|
2021-05-04 06:11:38 +08:00
|
|
|
- name: Run Fuzzers
|
|
|
|
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
|
|
|
|
with:
|
|
|
|
oss-fuzz-project-name: 'sound-open-firmware'
|
|
|
|
language: c
|
|
|
|
fuzz-seconds: 5
|