2020-04-24 13:00:44 +03:00
---
# vi: ts=2 sw=2 et:
# See: https://google.github.io/oss-fuzz/getting-started/continuous-integration/
name : CIFuzz
2020-05-08 19:46:46 +03:00
on :
pull_request :
paths :
- '**/meson.build'
- '.github/workflows/**'
- 'meson_options.txt'
- 'src/**'
- 'test/fuzz/**'
- 'tools/oss-fuzz.sh'
2020-05-08 21:14:19 +03:00
push :
branches :
2021-01-21 16:52:18 +03:00
- main
2020-04-24 13:00:44 +03:00
jobs :
Fuzzing :
runs-on : ubuntu-latest
2020-05-19 08:58:14 +03:00
if : github.repository == 'systemd/systemd'
2020-06-11 23:26:17 +03:00
strategy :
fail-fast : false
matrix :
sanitizer : [ address, undefined, memory]
2020-04-24 13:00:44 +03:00
steps :
2020-06-11 23:26:17 +03:00
- name : Build Fuzzers (${{ matrix.sanitizer }})
2020-04-29 08:04:56 +03:00
id : build
2020-04-24 13:00:44 +03:00
uses : google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with :
oss-fuzz-project-name : 'systemd'
dry-run : false
2020-05-13 23:17:37 +03:00
allowed-broken-targets-percentage : 0
2020-06-11 23:26:17 +03:00
sanitizer : ${{ matrix.sanitizer }}
- name : Run Fuzzers (${{ matrix.sanitizer }})
2020-04-24 13:00:44 +03:00
uses : google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with :
oss-fuzz-project-name : 'systemd'
fuzz-seconds : 600
dry-run : false
2020-06-11 23:26:17 +03:00
sanitizer : ${{ matrix.sanitizer }}
2020-04-24 13:00:44 +03:00
- name : Upload Crash
uses : actions/upload-artifact@v1
2020-04-29 08:04:56 +03:00
if : failure() && steps.build.outcome == 'success'
2020-04-24 13:00:44 +03:00
with :
2020-06-11 23:26:17 +03:00
name : ${{ matrix.sanitizer }}-artifacts
2020-04-24 13:00:44 +03:00
path : ./out/artifacts