1# Copyright (c) 2022 Yubico AB. All rights reserved. 2# Use of this source code is governed by a BSD-style 3# license that can be found in the LICENSE file. 4# SPDX-License-Identifier: BSD-2-Clause 5 6name: fuzzer 7 8on: 9 pull_request: 10 branches: 11 - main 12 push: 13 branches: 14 - main 15 - '*-ci' 16 17jobs: 18 build: 19 runs-on: ${{ matrix.os }} 20 strategy: 21 fail-fast: false 22 matrix: 23 os: [ ubuntu-22.04 ] 24 cc: [ clang-16 ] 25 sanitizer: [ asan, msan ] 26 steps: 27 - uses: actions/checkout@v4 28 - name: dependencies 29 run: | 30 sudo apt -q update 31 sudo apt install -q -y libudev-dev libpcsclite-dev 32 - name: compiler 33 env: 34 CC: ${{ matrix.cc }} 35 run: | 36 sudo ./.actions/setup_clang "${CC}" 37 - name: fuzz 38 env: 39 CC: ${{ matrix.cc }} 40 SANITIZER: ${{ matrix.sanitizer }} 41 run: ./.actions/fuzz-linux "${SANITIZER}" 42