mirror of
https://github.com/red0124/ssp.git
synced 2025-06-07 21:02:31 +02:00
[skip ci] Move fuzz to .github, update fuzz.yml
This commit is contained in:
parent
1b6277f6d5
commit
813f6cd616
7
.github/fuzz/makefile
vendored
Normal file
7
.github/fuzz/makefile
vendored
Normal 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
|
@ -1,4 +1,4 @@
|
||||
#include "../ssp.hpp"
|
||||
#include <ssp.hpp>
|
||||
#include <filesystem>
|
||||
#include <iostream>
|
||||
#include <unistd.h>
|
7
.github/workflows/fuzz.yml
vendored
7
.github/workflows/fuzz.yml
vendored
@ -31,6 +31,9 @@ jobs:
|
||||
image: silkeh/clang:15
|
||||
options: -v /usr/local:/host_usr_local
|
||||
|
||||
env:
|
||||
CXXFLAGS: -I ${{ github.workspace }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
@ -41,9 +44,9 @@ jobs:
|
||||
script/ci_install_deps.sh
|
||||
|
||||
- name: Build
|
||||
working-directory: fuzz
|
||||
working-directory: .github/fuzz
|
||||
run: make
|
||||
|
||||
- name: Run
|
||||
working-directory: fuzz
|
||||
working-directory: .github/fuzz
|
||||
run: make run
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,4 +6,3 @@ build/
|
||||
hbuild/
|
||||
subprojects/*
|
||||
!subprojects/*.wrap
|
||||
fuzz/ssp_fuzz
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user