Merge pull request 'Install afl in zig fuzz' (#4) from install-afl into main
Reviewed-on: https://git.ts.mattnite.net/mattnite/cairn/pulls/4
This commit is contained in:
commit
aee3d43ccb
|
|
@ -1,5 +1,5 @@
|
||||||
name: 'Cairn Zig Fuzz (AFL++)'
|
name: 'Cairn Zig Fuzz (AFL++)'
|
||||||
description: 'Build and run AFL++ fuzz targets, report crashes to Cairn. Each line in zig_build_args is a separate target.'
|
description: 'Install AFL++, then build and run AFL++ fuzz targets, reporting crashes to Cairn. Each line in zig_build_args is a separate target.'
|
||||||
|
|
||||||
inputs:
|
inputs:
|
||||||
cairn_server:
|
cairn_server:
|
||||||
|
|
@ -51,12 +51,15 @@ inputs:
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
steps:
|
steps:
|
||||||
|
- name: Setup AFL++
|
||||||
|
uses: mattnite/cairn/actions/setup-afl@main
|
||||||
|
|
||||||
- name: Check prerequisites
|
- name: Check prerequisites
|
||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
command -v zig >/dev/null 2>&1 || { echo "ERROR: zig not found in PATH. Install Zig before using this action (e.g. https://codeberg.org/mlugg/setup-zig@v2)."; exit 1; }
|
command -v zig >/dev/null 2>&1 || { echo "ERROR: zig not found in PATH. Install Zig before using this action (e.g. https://codeberg.org/mlugg/setup-zig@v2)."; exit 1; }
|
||||||
command -v afl-cc >/dev/null 2>&1 || { echo "ERROR: afl-cc not found in PATH. Install AFL++ before using this action (e.g. mattnite/cairn/actions/setup-afl@main)."; exit 1; }
|
command -v afl-cc >/dev/null 2>&1 || { echo "ERROR: afl-cc not found in PATH after setup-afl step."; exit 1; }
|
||||||
echo "zig $(zig version), afl-cc found"
|
echo "zig $(zig version), afl-cc found"
|
||||||
|
|
||||||
- name: Setup Cairn CLI
|
- name: Setup Cairn CLI
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue