-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (37 loc) · 1.23 KB
/
Copy pathci.yml
File metadata and controls
37 lines (37 loc) · 1.23 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
name: build-and-test
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DRENDERER_STRICT=ON
- name: Build
run: cmake --build build --config Release --parallel 2
- name: Test and render
run: ctest --test-dir build -C Release --output-on-failure
sanitizers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Configure Clang with address and undefined-behavior sanitizers
run: >-
cmake -S . -B build -DCMAKE_CXX_COMPILER=clang++
-DCMAKE_BUILD_TYPE=Debug -DRENDERER_STRICT=ON
-DCMAKE_CXX_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer"
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address,undefined"
- name: Build
run: cmake --build build --parallel 2
- name: Test and render
run: ctest --test-dir build --output-on-failure