]> git.ipfire.org Git - thirdparty/systemd.git/blame - .github/workflows/main.yml
cifuzz: upload artifacts only when the "run fuzzers" step fails
[thirdparty/systemd.git] / .github / workflows / main.yml
CommitLineData
3b4ea094
FS
1---
2# vi: ts=2 sw=2 et:
3# See: https://google.github.io/oss-fuzz/getting-started/continuous-integration/
4
5name: CIFuzz
6on: [pull_request]
7jobs:
8 Fuzzing:
9 runs-on: ubuntu-latest
10 steps:
11 - name: Build Fuzzers
9494b39d 12 id: build
3b4ea094
FS
13 uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
14 with:
15 oss-fuzz-project-name: 'systemd'
16 dry-run: false
17 - name: Run Fuzzers
18 uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
19 with:
20 oss-fuzz-project-name: 'systemd'
21 fuzz-seconds: 600
22 dry-run: false
23 - name: Upload Crash
24 uses: actions/upload-artifact@v1
9494b39d 25 if: failure() && steps.build.outcome == 'success'
3b4ea094
FS
26 with:
27 name: artifacts
28 path: ./out/artifacts