Skip to content

Commit e27cb45

Browse files
marc-hblgirdwood
authored andcommitted
.github: add scant_fuzzer.yml build
This is NOT how to properly compile the fuzzer, this is only to detect earlier and faster problems like thesofproject#3824 (288e228) and thesofproject#4118 (758e7be) In other words, when reverting the oss-fuzz parts of either of these commits this build fails as desired. Signed-off-by: Marc Herbert <marc.herbert@intel.com>
1 parent c2fe4ff commit e27cb45

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

.github/workflows/scant_fuzzer.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
3+
# This is NOT how to properly compile the fuzzer, this is only to detect
4+
# earlier and faster problems like
5+
# https://github.com/thesofproject/sof/pull/3824 (288e228) and
6+
# https://github.com/thesofproject/sof/pull/4118 (758e7be)
7+
#
8+
# In other words, when reverting the oss-fuzz parts of these commits
9+
# this build fails as desired.
10+
#
11+
# For the actual fuzzer see tools/oss-fuzz/README.
12+
13+
name: Scant fuzz compile
14+
15+
# 'workflow_dispatch' allows running this workflow manually from the
16+
# 'Actions' tab
17+
# yamllint disable-line rule:truthy
18+
on: [push, pull_request, workflow_dispatch]
19+
20+
jobs:
21+
scant-fuzzer-build:
22+
runs-on: ubuntu-20.04
23+
env:
24+
OUT: unused_runtime_output_dir
25+
steps:
26+
- uses: actions/checkout@v2
27+
# From time to time this will catch a git tag and change SOF_VERSION
28+
with: {fetch-depth: 10, submodules: recursive}
29+
30+
- name: yamllint ourselves
31+
run: yamllint .github/workflows/scant_fuzzer.yml
32+
33+
- name: cmake configuration
34+
run: cmake -B fuzz-build/ -S tools/oss-fuzz/
35+
36+
# Ninja does not give us access to the internal fuzz_ipc.o target
37+
# so we use make. TODO: isolate the link target in CMakelists.txt
38+
- name: build
39+
run: |
40+
cd fuzz-build/ # make -C is too verbose
41+
# We cannot link because we have no main(); we're not the
42+
# real fuzzer
43+
make -j6 sof_ep fuzz_ipc.o

0 commit comments

Comments
 (0)