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