Refactor transformers #766
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fuzz | |
on: | |
# schedule: | |
# - cron: 30 0 * * * | |
pull_request: | |
branches: | |
- "**" | |
workflow_dispatch: | |
inputs: | |
duration: | |
description: 'Duration of the fuzzing run in seconds' | |
required: true | |
default: "60" | |
type: string | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
fuzzing: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install deps | |
run: | | |
sudo .github/workflows/scripts/llvm.sh 15 | |
DEBIAN_FRONTEND="noninteractive" sudo apt-get -y install python3 apt-transport-https build-essential wget cmake git clang-15 libfuzzer-15-dev | |
- name: Build | |
run: ./fuzzing/build.sh | |
- name: Run fuzzer | |
run: ./fuzzing/run.sh ${{ github.event.inputs.duration }} | |
- name: Log | |
if: ${{ always() }} | |
run: grep -v -f fuzzing/scripts/report-negative-patterns.txt fuzzing/fuzz-*.log | |
- name: Show coverage | |
run: ./fuzzing/scripts/show_coverage.sh 40 | |
- name: Compress artifact | |
if: ${{ always() }} | |
run: tar -czvf fuzzing.tar.gz fuzzing/ | |
- name: Artifact | |
uses: actions/upload-artifact@v3 | |
if: ${{ always() }} | |
with: | |
name: fuzzing-data | |
path: fuzzing.tar.gz |