Skip to content

Bump github/codeql-action from 3.25.10 to 3.25.11 #269

Bump github/codeql-action from 3.25.10 to 3.25.11

Bump github/codeql-action from 3.25.10 to 3.25.11 #269

Workflow file for this run

name: Fuzz Test
on:
push:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
jobs:
fuzztest:
name: Fuzz Test
runs-on: ubuntu-latest
env:
BUILD_DIR: build_fuzztest
CLANG_VERSION: 15
CONFIG: RelWithDebug
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
"clang-${CLANG_VERSION}" \
cmake \
"libc++-${CLANG_VERSION}-dev" \
"libc++abi-${CLANG_VERSION}-dev" \
ninja-build
- name: Configure
run: |
mkdir "$BUILD_DIR"
cmake \
-S . \
-B "$BUILD_DIR" \
-G Ninja \
-D CMAKE_BUILD_TYPE="$CONFIG" \
-D CMAKE_CXX_COMPILER="clang++-$CLANG_VERSION" \
-D CMAKE_C_COMPILER="clang-$CLANG_VERSION" \
-D PEEJAY_FUZZTEST=Yes
- name: Build
run: |
cmake --build "$BUILD_DIR" --config="$CONFIG"
- name: Fuzz
run: |
"$BUILD_DIR/unittests/pj-unittests" --fuzz_for 10s