Skip to content

Commit d0bd987

Browse files
authored
Merge branch 'main' into module/abseil-cpp
2 parents 5a7ea9e + 9dcfeb2 commit d0bd987

File tree

12 files changed

+328
-313
lines changed

12 files changed

+328
-313
lines changed

.circleci/README.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 0 additions & 278 deletions
This file was deleted.

.github/actions/fuzzer/action.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: 'Fuzzer'
2+
description: 'Run Fuzzer'
3+
inputs:
4+
binary: # id of input
5+
description: 'Fuzzer binary to execute'
6+
required: true
7+
duration_seconds:
8+
description: 'How long the fuzzer should run in seconds'
9+
required: true
10+
runs:
11+
using: "composite"
12+
steps:
13+
- name: Check inputs
14+
shell: bash
15+
run: |
16+
if [ ! -f "${{ inputs.binary }}" ]; then
17+
echo "Binary \"${{ inputs.binary }}\" not found"
18+
exit 1
19+
fi
20+
21+
- name: Prepare
22+
id: prepare
23+
shell: bash
24+
run: |
25+
echo "cache-key=${{ runner.os }}-${{ hashFiles(inputs.binary) }}" >> $GITHUB_OUTPUT
26+
echo "corpus-dir=corpus-${{ hashFiles(inputs.binary) }}" >> $GITHUB_OUTPUT
27+
28+
- uses: actions/cache/restore@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
29+
id: cache
30+
with:
31+
path: ${{ steps.prepare.outputs.corpus-dir }}
32+
key: ${{ steps.prepare.outputs.cache-key }}
33+
34+
- name: Initialize corpus
35+
if: steps.cache.outputs.cache-hit != 'true'
36+
shell: bash
37+
run: mkdir -p ${{ steps.prepare.outputs.corpus-dir }}
38+
39+
- name: Run
40+
run: ${{ inputs.binary }} -max_total_time=${{ inputs.duration_seconds }} ${{ steps.prepare.outputs.corpus-dir }}
41+
shell: bash
42+
43+
- uses: actions/cache/save@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4
44+
with:
45+
path: ${{ steps.prepare.outputs.corpus-dir }}
46+
key: ${{ steps.prepare.outputs.cache-key }}

0 commit comments

Comments
 (0)