chore(deps): bump github/codeql-action from 3.30.3 to 4.30.8 #6
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 & Bench | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: ["main"] | |
| merge_group: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| fuzz-bench: | |
| name: Check that the fuzz and bench targets work | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-24.04, macos-15] # FIXME: ubuntu-24.04-arm has issues | |
| check: [fuzz, bench] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false | |
| - uses: ./.github/actions/rust | |
| with: | |
| version: nightly | |
| tools: ${{ matrix.check == 'fuzz' && 'cargo-fuzz' || ''}} | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - id: nss-version | |
| run: echo "minimum=$(cat min_version.txt)" >> "$GITHUB_OUTPUT" | |
| - uses: ./.github/actions/nss | |
| with: | |
| minimum-version: ${{ steps.nss-version.outputs.minimum }} | |
| - if: ${{ matrix.check == 'fuzz' }} | |
| env: | |
| UBUNTU: ${{ startsWith(matrix.os, 'ubuntu') }} | |
| run: | | |
| cargo fuzz build --dev | |
| for fuzzer in $(cargo fuzz list); do | |
| cargo fuzz run --dev --sanitizer none "$fuzzer" -- -runs=1 | |
| done | |
| - if: ${{ matrix.check == 'bench' }} | |
| run: cargo bench --features bench --profile dev -- --profile-time 1 |