[skip ci] Move fuzz to .github, update fuzz.yml

This commit is contained in:
ado 2024-03-03 16:22:52 +01:00
parent 1b6277f6d5
commit 813f6cd616
5 changed files with 13 additions and 11 deletions

7
.github/fuzz/makefile vendored Normal file
View File

@ -0,0 +1,7 @@
EXE=ssp_fuzz
all:
clang++ ${CXXFLAGS} ssp_fuzz.cpp -fsanitize=fuzzer -std=c++17 -o ${EXE}
run:
./${EXE} -max_total_time=900

View File

@ -1,4 +1,4 @@
#include "../ssp.hpp" #include <ssp.hpp>
#include <filesystem> #include <filesystem>
#include <iostream> #include <iostream>
#include <unistd.h> #include <unistd.h>

View File

@ -31,6 +31,9 @@ jobs:
image: silkeh/clang:15 image: silkeh/clang:15
options: -v /usr/local:/host_usr_local options: -v /usr/local:/host_usr_local
env:
CXXFLAGS: -I ${{ github.workspace }}
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
@ -41,9 +44,9 @@ jobs:
script/ci_install_deps.sh script/ci_install_deps.sh
- name: Build - name: Build
working-directory: fuzz working-directory: .github/fuzz
run: make run: make
- name: Run - name: Run
working-directory: fuzz working-directory: .github/fuzz
run: make run run: make run

1
.gitignore vendored
View File

@ -6,4 +6,3 @@ build/
hbuild/ hbuild/
subprojects/* subprojects/*
!subprojects/*.wrap !subprojects/*.wrap
fuzz/ssp_fuzz

View File

@ -1,7 +0,0 @@
EXE=ssp_fuzz
all:
clang++ ssp_fuzz.cpp -fsanitize=fuzzer -std=c++17 -o ${EXE}
run:
./${EXE} -max_total_time=900