Skip to content

Commit

Permalink
update cov
Browse files Browse the repository at this point in the history
  • Loading branch information
nlgripto committed Dec 20, 2024
1 parent 6cd7cb0 commit f897c4f
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/clusterfuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
env:
MACHINE: linux_clang_haswell
OBJ_DIR: build/linux/clang/haswell
COV_OBJ_DIR: build/linux/clang/haswell_cov
EXTRAS: fuzz asan
steps:
- uses: actions/checkout@v4
Expand All @@ -21,26 +22,40 @@ jobs:
- run: sudo apt update && sudo apt install -y zip

- uses: asymmetric-research/clusterfuzz-fuzzbot-builder@main
name: Build fuzz tests
name: Build shared object (+asan) for fd_exec_sol_compat*.so
with:
command: make -j -Otarget lib

- name: List Artifacts
- uses: asymmetric-research/clusterfuzz-fuzzbot-builder@main
name: Build shared objects with coverage enabled
env:
OBJ_DIR: ${{ env.COV_OBJ_DIR }}
EXTRAS: fuzz llvm-cov
MACHINE: linux_clang_haswell
with:
command: make -j -Otarget lib


- name: List Artifacts, copy sources
run: |
ls ${{ env.OBJ_DIR }}/lib
ls ${{ env.COV_OBJ_DIR}}/lib
cd src && pwd > buildpwd && cd -
cp -r src/ ${{ env.COV_OBJ_DIR}}/libfd_exec_sol_compat_src/
# we give it this path so that the glob hits.
- name: upload so artifact
- name: upload so artifacts
uses: actions/upload-artifact@v4
with:
path: ${{ env.OBJ_DIR }}/lib/libfd_exec_sol_compat.so
path: ${{ env.OBJ_DIR }}/lib/libfd_exec_sol_compat*.so
name: libfd_exec_sol_compat
retention-days: 14

- name: upload stubbed so artifact
- name: upload .so with cov
uses: actions/upload-artifact@v4
with:
path: ${{ env.OBJ_DIR }}/lib/libfd_exec_sol_compat_stubbed.so
name: libfd_exec_sol_compat_stubbed
path: ${{ env.COV_OBJ_DIR }}/lib/libfd_exec_sol_compat* # includes ${{ env.COV_OBJ_DIR}}/lib/libfd_exec_sol_compat_src/
name: libfd_exec_sol_compat_cov
retention-days: 14


Expand Down

0 comments on commit f897c4f

Please sign in to comment.