-
Notifications
You must be signed in to change notification settings - Fork 2
168 lines (148 loc) · 4.35 KB
/
Copy pathmsvc.yml
File metadata and controls
168 lines (148 loc) · 4.35 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
name: MSVC
on:
push:
branches:
- '**'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
momo-test:
strategy:
matrix:
include:
# Visual Studio 2022 x64
- toolset: '14.4'
arch: 'x64'
build_type: 'Release'
no_exceptions_rtti: 'Off'
extra_settings: 'Off'
flags: '/std:c++23preview /WX'
win_ver: '2025'
# Visual Studio 2026 x64
- toolset: '14.5'
arch: 'x64'
build_type: 'Release'
no_exceptions_rtti: 'Off'
extra_settings: 'Off'
flags: '/std:c++latest /WX'
win_ver: '2025-vs2026'
- toolset: '14.5'
arch: 'x64'
build_type: 'Debug'
no_exceptions_rtti: 'Off'
extra_settings: 'Off'
flags: '/std:c++latest /WX'
win_ver: '2025-vs2026'
- toolset: '14.5'
arch: 'x64'
build_type: 'Release'
no_exceptions_rtti: 'On'
extra_settings: 'Off'
flags: '/std:c++latest /WX'
win_ver: '2025-vs2026'
- toolset: '14.5'
arch: 'x64'
build_type: 'Release'
no_exceptions_rtti: 'Off'
extra_settings: 'On'
flags: '/std:c++latest /WX'
win_ver: '2025-vs2026'
# Visual Studio 2022 x86
- toolset: '14.4'
arch: 'x64_x86'
build_type: 'Release'
no_exceptions_rtti: 'Off'
extra_settings: 'Off'
flags: '/std:c++23preview /WX'
win_ver: '2025'
# Visual Studio 2026 x86
- toolset: '14.5'
arch: 'x64_x86'
build_type: 'Release'
no_exceptions_rtti: 'Off'
extra_settings: 'Off'
flags: '/std:c++latest /WX'
win_ver: '2025-vs2026'
- toolset: '14.5'
arch: 'x64_x86'
build_type: 'Debug'
no_exceptions_rtti: 'Off'
extra_settings: 'Off'
flags: '/std:c++latest /WX'
win_ver: '2025-vs2026'
- toolset: '14.5'
arch: 'x64_x86'
build_type: 'Release'
no_exceptions_rtti: 'On'
extra_settings: 'Off'
flags: '/std:c++latest /WX'
win_ver: '2025-vs2026'
- toolset: '14.5'
arch: 'x64_x86'
build_type: 'Release'
no_exceptions_rtti: 'Off'
extra_settings: 'On'
flags: '/std:c++latest /WX'
win_ver: '2025-vs2026'
# Visual Studio 2022 ARM64
- toolset: '14.4'
arch: 'arm64'
build_type: 'Release'
no_exceptions_rtti: 'Off'
extra_settings: 'Off'
flags: '/std:c++23preview /WX'
win_ver: '11-arm'
- toolset: '14.4'
arch: 'arm64'
build_type: 'Release'
no_exceptions_rtti: 'Off'
extra_settings: 'Off'
flags: '/std:c++latest /WX'
win_ver: '11-arm'
- toolset: '14.4'
arch: 'arm64'
build_type: 'Debug'
no_exceptions_rtti: 'Off'
extra_settings: 'Off'
flags: '/std:c++latest /WX'
win_ver: '11-arm'
- toolset: '14.4'
arch: 'arm64'
build_type: 'Release'
no_exceptions_rtti: 'On'
extra_settings: 'Off'
flags: '/std:c++latest /WX'
win_ver: '11-arm'
- toolset: '14.4'
arch: 'arm64'
build_type: 'Release'
no_exceptions_rtti: 'Off'
extra_settings: 'On'
flags: '/std:c++latest /WX'
win_ver: '11-arm'
runs-on: windows-${{ matrix.win_ver }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Ninja
if: matrix.win_ver == '11-arm'
run: choco install ninja
- name: Setup MSVC
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
toolset: ${{ matrix.toolset }}
- name: Build
env:
CXXFLAGS: ${{ matrix.flags }}
run: |
cd test
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} `
-DMOMO_TEST_NO_EXCEPTIONS_RTTI=${{ matrix.no_exceptions_rtti }} `
-DMOMO_TEST_EXTRA_SETTINGS=${{ matrix.extra_settings }}
cmake --build . -v
- name: Test
run: test/build/momo_test.exe