-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (70 loc) · 2.25 KB
/
build.yml
File metadata and controls
76 lines (70 loc) · 2.25 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
name: Build Linux + Windows
on:
push:
branches: [ main ]
paths:
- '**.cpp'
- '**.h'
- '**/CMakeLists.txt'
- 'CMakePresets.json'
- '.github/workflows/build.yml'
pull_request:
branches: [ main ]
paths:
- '**.cpp'
- '**.h'
- '**/CMakeLists.txt'
- 'CMakePresets.json'
- '.github/workflows/build.yml'
jobs:
build:
name: ${{ matrix.name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
# --------------------------------
# Linux — GCC (Debug)
# --------------------------------
- name: Linux (GCC, Ninja, Debug)
os: ubuntu-latest
configure-preset: linux-gcc-debug
build-preset: linux-gcc-debug
# --------------------------------
# Linux — Clang (Debug)
# --------------------------------
- name: Linux (Clang, Ninja, Debug)
os: ubuntu-latest
configure-preset: linux-clang-debug
build-preset: linux-clang-debug
# --------------------------------
# Windows — GCC + Ninja (Debug)
# --------------------------------
- name: Windows (GCC, Ninja, Debug)
os: windows-latest
configure-preset: windows-gcc-debug
build-preset: windows-gcc-debug
# --------------------------------
# Windows — Clang + Ninja (Debug)
# --------------------------------
- name: Windows (Clang, Ninja, Debug)
os: windows-latest
configure-preset: windows-clang-debug
build-preset: windows-clang-debug
# --------------------------------
# Windows — MSVC (Debug)
# --------------------------------
- name: Windows (MSVC, Debug)
os: windows-latest
configure-preset: windows-msvc
build-preset: windows-msvc-debug
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup CMake & Ninja
uses: lukka/get-cmake@latest
- name: Configure
run: cmake --preset ${{ matrix.configure-preset }}
- name: Build
run: cmake --build --preset ${{ matrix.build-preset }}