Debian Codegraph @

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

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