Skip to content

Bump actions/cache from 4.1.2 to 4.2.0 #437

Bump actions/cache from 4.1.2 to 4.2.0

Bump actions/cache from 4.1.2 to 4.2.0 #437

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@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
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 \
"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