forked from duckdb/duckdb
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.41 KB
/
cifuzz.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: CIFuzz
on:
workflow_dispatch:
repository_dispatch:
push:
branches:
- '**'
- '!main'
- '!feature'
paths-ignore:
- '**.md'
- 'tools/**'
- '.github/patches/duckdb-wasm/**'
- '.github/workflows/**'
- '!.github/workflows/cifuzz.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref || '' }}-${{ github.base_ref || '' }}-${{ github.ref != 'refs/heads/main' || github.sha }}
cancel-in-progress: true
jobs:
Fuzzing:
name: OSSFuzz
if: github.repository == 'duckdb/duckdb'
strategy:
fail-fast: false
matrix:
sanitizer: [address, undefined, memory]
runs-on: ubuntu-latest
steps:
- name: Build Fuzzers ${{ matrix.sanitizer }}
id: build
uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
with:
oss-fuzz-project-name: 'duckdb'
dry-run: false
sanitizer: ${{ matrix.sanitizer }}
- name: Run Fuzzers ${{ matrix.sanitizer }}
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
oss-fuzz-project-name: 'duckdb'
fuzz-seconds: 3600
dry-run: false
sanitizer: ${{ matrix.sanitizer }}
- name: Upload Crash
uses: actions/upload-artifact@v4
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts-${{ matrix.sanitizer }}
path: ./out/artifacts