forked from sleuthkit/sleuthkit
-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (38 loc) · 1.15 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
36
37
38
# Build OSSFuzz fuzz targets from source.
name: build_ossfuzz
on:
push:
branches:
- '**'
pull_request:
branches:
- main
- develop
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: |
# TODO: update ossfuzz script and then remove this work-around
# Work around hardcoded -Werror flags https://github.com/sleuthkit/sleuthkit/issues/3012
sed '/-Werror/ d' -i projects/sleuthkit/build.sh
sed 's?--without-libvmdk?--without-libvmdk --without-libcrypto?' -i projects/sleuthkit/build.sh
python3 infra/helper.py build_image --pull sleuthkit
python3 infra/helper.py build_fuzzers --sanitizer address sleuthkit
python3 infra/helper.py check_build sleuthkit