Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
nlgripto committed May 1, 2024
1 parent 364f0e5 commit 70d2ad2
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/actions/fc/fc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Generate Firedancer Fuzz Targets
on:
workflow_call:
inputs:
previous_action_outputs:
description: 'Outputs from the previous action'
required: true
type: string
jobs:
generate-fuzz-targets:
runs-on: ubuntu-latest
steps:
# - uses: actions/checkout@v4

- name: Download artifacts from previous action
id: get-artifacts
uses: actions/download-artifact@v4
with:
path: build
merge-multiple: true

- name: Install dependencies
run: |
sudo apt update
sudo apt install -y zip unzip
- name: Generate fuzz targets and .fc files
run: |
chmod +x bundle-binaries-fc.sh
./contrib/test/bundle-binaries-fc.sh ${{ steps.get-artifacts.outputs.download-path }} fc-fd-${{ github.run_id }}.zip
- name: Upload merged zipfile
uses: actions/upload-artifact@v4
with:
name: fc-fd-${{ github.run_id }}.zip
path: fc-fd-${{ github.run_id }}.zip
28 changes: 28 additions & 0 deletions .github/workflows/clusterfuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,31 @@ jobs:
project-id: isol-clusterfuzz
qualifier: ${{ matrix.qualifier }}
service-account-credentials: ${{ secrets.FUZZ_SERVICE_ACCT_JSON_BUNDLE }}

- name: Find the tmpdir containing our binaries and rewritten libs
id: find-fuzzdir
run: |
FD_DIR=$(find -d /tmp/ | grep fdfuzz | head -n 1)
echo "fd-dir=$FD_DIR" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@v4
name: Upload harness binaries
with:
name: ${{ github.run_id }}-${{ matrix.machine }}
path: ./build/
retention-days: 1
- uses: actions/upload-artifact@v4
name: Upload .a dependency libraries
with:
name: ${{ github.run_id }}-${{ matrix.machine }}-lib
path: ${{ steps.find-fuzzdir.outputs.fd-dir }}/lib
retention-days: 1

fc-publish:
needs: clusterfuzz-publish
uses: ./.github/actions/fc/fc.yml
with:
previous_action_outputs: |
${{ github.run_id }}-linux_clang_haswell
${{ github.run_id }}-linux_clang_icelake
${{ github.run_id }}-linux_clang_haswell-lib
${{ github.run_id }}-linux_clang_icelake-lib

0 comments on commit 70d2ad2

Please sign in to comment.