Bump googletest from 04ee1b4
to 90a4152
#1148
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Fuzz Test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [assigned, opened, synchronize, reopened] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
fuzztest: | |
name: Fuzz Test | |
runs-on: ubuntu-latest | |
env: | |
BUILD_DIR: build_fuzztest | |
BUILD_TYPE: RelWithDebug | |
CLANG_VERSION: 17 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake ninja-build | |
- name: Install Dependencies (LLVM) | |
uses: paulhuggett/install-llvm@ad897b4b1cf03f54c1218ec6d97a23ff4b10b870 # v1.0 | |
with: | |
version: ${{ env.CLANG_VERSION }} | |
- name: Configure | |
run: | | |
mkdir "$BUILD_DIR" | |
cmake \ | |
-S . \ | |
-B "$BUILD_DIR" \ | |
-G Ninja \ | |
-D CMAKE_BUILD_TYPE="$BUILD_TYPE" \ | |
-D CMAKE_CXX_COMPILER="clang++-$CLANG_VERSION" \ | |
-D CMAKE_C_COMPILER="clang-$CLANG_VERSION" \ | |
-D ICUBABY_FUZZTEST=Yes \ | |
-D ICUBABY_STANDALONE=Yes | |
- name: Build | |
run: | | |
cmake --build "$BUILD_DIR" --config "$BUILD_TYPE" --verbose | |
- name: Fuzz | |
run: | | |
"$BUILD_DIR/unittests/icubaby-unittests" --fuzz_for 30s |