-
Notifications
You must be signed in to change notification settings - Fork 6
35 lines (35 loc) · 1.17 KB
/
build_ossfuzz.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Build OSSFuzz fuzz targets from source.
name: build_ossfuzz
on:
push:
branches: [main]
permissions: read-all
jobs:
build_ossfuzz:
runs-on: ubuntu-22.04
strategy:
matrix:
include:
- architecture: 'x64'
compiler: 'gcc'
configure_options: ''
steps:
- name: Install build dependencies
run: |
sudo apt-get -y install git
- uses: actions/checkout@v4
with:
repository: google/oss-fuzz
path: oss-fuzz
- name: Build OSSFuzz fuzz targets
working-directory: oss-fuzz
run: |
mkdir -p projects/libfwevt
cp projects/libyal/build.sh projects/libfwevt/
cp projects/libyal/project.yaml projects/libfwevt/
head -n 20 projects/libyal/Dockerfile > projects/libfwevt/Dockerfile
echo "RUN git clone --depth 1 https://github.com/libyal/libfwevt.git libfwevt" >> projects/libfwevt/Dockerfile
tail -n 3 projects/libyal/Dockerfile >> projects/libfwevt/Dockerfile
python3 infra/helper.py build_image --pull libfwevt
python3 infra/helper.py build_fuzzers --sanitizer address libfwevt
python3 infra/helper.py check_build libfwevt