Debian Codegraph @

.github/workflows/ci-fuzz-short.yml

raw
1 name: fuzz-short-job
2
3 on:
4 # manual triggering
5 workflow_dispatch:
6
7
8 permissions:
9 contents: read
10
11 jobs:
12 fuzz:
13 runs-on: ci-test
14 if: ${{ github.repository != 'intel/pcm' }}
15
16 steps:
17 - name: Harden Runner
18 uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
19 with:
20 egress-policy: audit
21
22 - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
23 with:
24 submodules: recursive
25
26 - name: Build and test
27 run: |
28 cmake --version
29 set -o pipefail
30 mkdir build
31 cd build
32 bash ${{ github.workspace }}/tests/fuzz.sh 10 2>&1 | tee fuzz-log.txt
33 cd ..
34
35 - name: Show report
36 run: |
37 cat build/report.txt
38 echo "Fuzzing completed"
39
40 - name: upload-artifact
41 uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
42 with:
43 name: fuzz-log-${{ github.sha }}
44 path: "build/fuzz-log.txt"
45
46