-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (60 loc) · 1.8 KB
/
Copy pathci.yml
File metadata and controls
74 lines (60 loc) · 1.8 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
72
73
74
name: CI
on:
push:
pull_request:
permissions:
contents: read
jobs:
build-and-test:
name: CI (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- windows-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.14"
- name: Install Python test dependencies
run: python -m pip install --disable-pip-version-check -r requirements-test.txt
- name: Configure
run: >-
cmake -S . -B build
-D CMAKE_BUILD_TYPE=Release
-D BUILD_TESTING=ON
-D LOGLENS_WARNINGS_AS_ERRORS=ON
- name: Build
run: cmake --build build --config Release
- name: Test
run: ctest --test-dir build --build-config Release --output-on-failure
fuzz-smoke:
name: Parser fuzz smoke
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Configure fuzz target
env:
CC: clang
CXX: clang++
run: >-
cmake -S . -B build-fuzz
-D CMAKE_BUILD_TYPE=RelWithDebInfo
-D BUILD_TESTING=OFF
-D LOGLENS_BUILD_FUZZERS=ON
-D LOGLENS_WARNINGS_AS_ERRORS=ON
- name: Build fuzz target
run: cmake --build build-fuzz --target fuzz_parser --config RelWithDebInfo
- name: Run bounded parser fuzz smoke
run: >-
./build-fuzz/fuzz_parser
-runs=2000
-max_len=1024
-timeout=2
tests/fuzz/corpus/parser