Skip to content

Fuzz PR121970

Fuzz PR121970 #127

Workflow file for this run

name: Pre-commit Fuzzing
on:
issues:
types: labeled
jobs:
build:
if: contains(github.event.label.name, 'fuzz')
runs-on: self-hosted
timeout-minutes: 1200
permissions:
issues: write
contents: write
steps:
- uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Set up Git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git -C llvm-project checkout .
git -C llvm-project clean -fdx
- name: Set up patch
run: |
${{ github.workspace }}/setup_pre_commit_patch.sh
env:
GITHUB_PATCH_ID: ${{ github.event.issue.body }}
- name: Build LLVM
run: ${{ github.workspace }}/build.sh
- name: Run Fuzzing
id: fuzz
run: ${{ github.workspace }}/fuzz.sh
env:
FUZZ_MODE: ${{ github.event.label.name }}
- name: Artifact
uses: actions/upload-artifact@v4
if: steps.fuzz.outputs.SHOULD_UPLOAD_ARTIFACT == '1'
id: artifact
with:
name: seeds
path: csmith_work
- name: Append artifact url
if: steps.fuzz.outputs.SHOULD_UPLOAD_ARTIFACT == '1'
run: |
echo "Artifact: $ARTIFACT_URL" >> issue.md
env:
ARTIFACT_URL: ${{ steps.artifact.outputs.artifact-url }}
- name: Report
uses: thollander/actions-comment-pull-request@v2
with:
filePath: issue.md