-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (67 loc) · 1.95 KB
/
Copy pathci.yml
File metadata and controls
71 lines (67 loc) · 1.95 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: CI
on:
push:
branches: [main]
pull_request:
jobs:
build-and-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: Build
run: cmake --build build --parallel
- name: Test
run: ctest --test-dir build --output-on-failure
sanitizers:
runs-on: ubuntu-latest
env:
CC: clang
CXX: clang++
steps:
- uses: actions/checkout@v4
- name: Configure
run: >-
cmake -S . -B build-sanitizers
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_CXX_FLAGS="-fsanitize=address,undefined -fno-sanitize-recover=all -fno-omit-frame-pointer"
- name: Build
run: cmake --build build-sanitizers --parallel 2
- name: Test
run: ctest --test-dir build-sanitizers --output-on-failure
fuzz:
runs-on: ubuntu-latest
env:
CC: clang
CXX: clang++
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake -S . -B build-fuzz -DCMAKE_BUILD_TYPE=Debug -DSQL_ENGINE_BUILD_FUZZER=ON
- name: Build
run: cmake --build build-fuzz --target sql_parser_planner_fuzz --parallel 2
- name: Replay corpus (regression gate)
run: ./build-fuzz/sql_parser_planner_fuzz -timeout=10 fuzz/corpus/*
- name: Short discovery session (non-blocking)
continue-on-error: true
run: >-
./build-fuzz/sql_parser_planner_fuzz fuzz/corpus
-max_total_time=90
-timeout=10
-rss_limit_mb=2048
-print_final_stats=1
- name: Upload discovery artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: fuzz-findings
path: |
crash-*
timeout-*
oom-*
if-no-files-found: ignore