-
Notifications
You must be signed in to change notification settings - Fork 0
92 lines (74 loc) · 2.1 KB
/
Copy pathci.yml
File metadata and controls
92 lines (74 loc) · 2.1 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: ci
on:
push:
pull_request:
permissions:
contents: read
jobs:
linux:
name: linux / ${{ matrix.compiler }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- compiler: gcc
cxx: g++
- compiler: clang
cxx: clang++
steps:
- uses: actions/checkout@v7
- name: configure
run: >-
cmake -S . -B build/ci -G Ninja
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_CXX_COMPILER=${{ matrix.cxx }}
-DWINDOWS_POINTER_BUILD_PLUGIN=OFF
-DBUILD_TESTING=ON
- name: build
run: cmake --build build/ci
- name: test
run: ctest --test-dir build/ci --output-on-failure
sanitize:
name: sanitizers and fuzzer
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v7
- name: configure tests
run: >-
cmake -S . -B build/sanitize -G Ninja
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_CXX_COMPILER=clang++
-DWINDOWS_POINTER_BUILD_PLUGIN=OFF
-DWINDOWS_POINTER_ENABLE_SANITIZERS=ON
-DBUILD_TESTING=ON
- name: build and test
run: |
cmake --build build/sanitize
ctest --test-dir build/sanitize --output-on-failure
- name: configure fuzzer
run: >-
cmake -S . -B build/fuzz -G Ninja
-DCMAKE_BUILD_TYPE=Debug
-DCMAKE_CXX_COMPILER=clang++
-DWINDOWS_POINTER_BUILD_PLUGIN=OFF
-DWINDOWS_POINTER_BUILD_FUZZER=ON
-DBUILD_TESTING=OFF
- name: annoy it briefly
run: |
cmake --build build/fuzz
build/fuzz/windows_pointer_fuzzer -runs=100000
windows:
name: windows / msvc
runs-on: windows-2022
steps:
- uses: actions/checkout@v7
- name: configure
run: >-
cmake -S . -B build/ci
-DWINDOWS_POINTER_BUILD_PLUGIN=OFF
-DBUILD_TESTING=ON
- name: build
run: cmake --build build/ci --config Release --parallel
- name: test
run: ctest --test-dir build/ci -C Release --output-on-failure