Skip to content

refs #12442 - generate a fuzzing corpus by extracting code from testrunner #2

refs #12442 - generate a fuzzing corpus by extracting code from testrunner

refs #12442 - generate a fuzzing corpus by extracting code from testrunner #2

Workflow file for this run

# Syntax reference https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
# Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
name: corpus
on: [pull_request, push]
permissions:
contents: read
jobs:
corpus:
runs-on: ubuntu-22.04
if: ${{ github.repository_owner == 'danmar' }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: ccache
uses: hendrikmuhs/[email protected]
with:
key: ${{ github.workflow }}-${{ runner.os }}
- name: build testrunner
run: |
set -x
store_dir=$(pwd)/store
mkdir $store_dir
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
make -j$(nproc) -s CXXFLAGS="-w -DSTORE_INPUT_DIR=$store_dir"
- name: run testrunner
run: |
store_dir=$(pwd)/store
./testrunner
# TODO: dedup
- uses: actions/upload-artifact@v4
if: success()
with:
name: corpus
path: ./store