* Update ubuntu-latest tag to ubuntu-22.04 Everytime a CI service such a GitHub actions update the images corresponding to their 'latest' tags, pipelines tend to have some hipcups due to changes in the distribution default packages. By fixing the images to a specific one, we should be more resilient to changes in the Github actions environment. * Use same build directory used in CMake presets
34 lines
908 B
YAML
34 lines
908 B
YAML
# OSS-Fuzz continuous integration:
|
|
# https://google.github.io/oss-fuzz/getting-started/continuous-integration/
|
|
|
|
name: CIFuzz
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
on:
|
|
pull_request:
|
|
paths-ignore:
|
|
- "*.md"
|
|
jobs:
|
|
Fuzzing:
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Build Fuzzers
|
|
id: build
|
|
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
|
|
with:
|
|
oss-fuzz-project-name: 'exiv2'
|
|
dry-run: false
|
|
- name: Run Fuzzers
|
|
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
|
|
with:
|
|
oss-fuzz-project-name: 'exiv2'
|
|
fuzz-seconds: 600
|
|
dry-run: false
|
|
- name: Upload Crash
|
|
uses: actions/upload-artifact@v3
|
|
if: failure() && steps.build.outcome == 'success'
|
|
with:
|
|
name: artifacts
|
|
path: ./out/artifacts
|