-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (40 loc) · 1.27 KB
/
Copy pathbuild-and-test.yml
File metadata and controls
55 lines (40 loc) · 1.27 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
# SPDX-FileCopyrightText: (C) Roman Donchenko
#
# SPDX-License-Identifier: MPL-2.0
name: Build and test
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
linux:
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@v6
- name: Configure
# TODO: add -fsanitize=undefined after GCC 16 becomes available
run: cmake -B build -G Ninja -D CMAKE_BUILD_TYPE=Release
-D CMAKE_CXX_FLAGS='-fsanitize=address,leak'
- name: Build
run: cmake --build build
- name: Test
run: ctest --test-dir build --verbose
windows:
runs-on: windows-2025-vs2026
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Install CMake
run: pipx install cmake==4.2
- name: Configure
run: cmake -B build -G "Visual Studio 18 2026"
- name: Build
run: cmake --build build --config Release
- name: Test
run: ctest --test-dir build --build-config Release --verbose