Skip to content

Commit

Permalink
Fuzzing: initial build and fuzz workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgeana committed Oct 31, 2023
1 parent f3d67e4 commit 4e5eafa
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build_and_fuzz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Fuzz

on: [push, pull_request]

jobs:
fuzz_msan:
name: fuzz with MemorySanitizer
runs-on: ubuntu-latest
container: ghcr.io/yubico/yubihsm-shell/fuzzing-msan:latest

steps:

- name: clone the Yubico/yubihsm-shell repository
uses: actions/checkout@v3
with:
path: yubihsm-shell

- name: do build
working-directory: yubihsm-shell
env:
CC: ${{ matrix.cc }}
VERBOSE: 1
run: |
cmake \
-DFUZZING=ON \
-DFUZZING_MSAN=ON \
-DWITHOUT_MANPAGES=ON \
-DDISABLE_LTO=ON \
-DENABLE_STATIC=ON \
-B build-msan
cmake --build build-msan

0 comments on commit 4e5eafa

Please sign in to comment.