Restructure CI to use reusable steps, and add new checks #602
Workflow file for this run
This file contains 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
# SPDX-License-Identifier: BSD-3-Clause | |
# Copyright Contributors to the OpenEXR Project. | |
name: OSS-Fuzz | |
# Skip the run on *.md changes and on changes to the website. | |
# Also, no need to run on changes to the bazel setup. | |
on: | |
push: | |
paths: | |
- '**' | |
- '!**.md' | |
- '!website/**' | |
- '!bazel/**' | |
- '!src/wrappers/**' | |
- '!.github/workflows/**' | |
- '.github/workflows/ossfuzz_workflow.yml' | |
pull_request: | |
paths: | |
- '**' | |
- '!**.md' | |
- '!website/**' | |
- '!bazel/**' | |
- '!src/wrappers/**' | |
- '!.github/workflows/**' | |
- '.github/workflows/ossfuzz_workflow.yml' | |
permissions: | |
contents: read | |
jobs: | |
Fuzzing: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Build Fuzzers | |
id: build | |
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@32f1d4deadc82279ec9001a837f2424e185c69a2 # master | |
with: | |
oss-fuzz-project-name: 'openexr' | |
dry-run: false | |
language: c++ | |
- name: Run Fuzzers | |
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@32f1d4deadc82279ec9001a837f2424e185c69a2 # master | |
with: | |
oss-fuzz-project-name: 'openexr' | |
fuzz-seconds: 300 | |
dry-run: false | |
language: c++ | |
- name: Upload Crash | |
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3 | |
if: failure() && steps.build.outcome == 'success' | |
with: | |
name: artifacts | |
path: ./out/artifacts |