5
5
paths :
6
6
- " **.c"
7
7
- " **.h"
8
- - " **.cpp"
9
- - " **.hpp"
10
8
- " **.py"
11
9
- " **.build"
12
10
- " **.options"
13
11
pull_request :
14
12
paths :
15
13
- " **.c"
16
14
- " **.h"
17
- - " **.cpp"
18
- - " **.hpp"
19
15
- " **.py"
20
16
- " **.build"
21
17
- " **.options"
26
22
runs-on : windows-latest
27
23
strategy :
28
24
matrix :
29
- msvc_version : [2015, 2017, 2019, 2022]
25
+ msvc_version : [2015, 2017, 2019, 2022, 2025 ]
30
26
steps :
31
27
- name : Checkout code
32
28
uses : actions/checkout@v4
@@ -51,25 +47,17 @@ jobs:
51
47
choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --includeOptional --passive"
52
48
} elseif ($env:msvc_version -eq "2022") {
53
49
choco install visualstudio2022buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --includeOptional --passive"
50
+ } elseif ($env:msvc_version -eq "2025") {
51
+ choco install visualstudio2025buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended --includeOptional --passive"
54
52
}
55
53
$env:CC="cl.exe"
56
54
$env:CXX="cl.exe"
57
55
58
56
- name : Configure
59
57
run : meson setup builddir_msvc_${{ matrix.msvc_version }} --fatal-meson-warnings -Dwerror=true -Dwith_test=enabled -Dwarning_level=3
60
58
61
- - name : Compile
62
- run : meson compile -C builddir_msvc_${{ matrix.msvc_version }}
63
-
64
59
- name : Run Tests
65
- run : meson test -C builddir_msvc_${{ matrix.msvc_version }} -v
66
-
67
- - name : Upload Test Log
68
- if : failure()
69
- uses : actions/upload-artifact@v4
70
- with :
71
- name : windows_msvc_${{ matrix.msvc_version }}_meson_testlog
72
- path : builddir_msvc_${{ matrix.msvc_version }}/meson-logs/testlog.txt
60
+ run : meson test -C builddir_msvc_${{ matrix.msvc_version }} -v --test-args='show --mode tree --verbose ci --result fail'
73
61
74
62
build_macosx :
75
63
name : Building on macOS with Xcode ${{ matrix.xcode_version }}
98
86
- name : Configure
99
87
run : meson setup builddir --fatal-meson-warnings -Dwerror=true -Dwith_test=enabled -Dwarning_level=3
100
88
101
- - name : Compile
102
- run : meson compile -C builddir
103
-
104
89
- name : Run Tests
105
- run : meson test -C builddir -v
106
-
107
- - name : Upload Test Log
108
- if : failure()
109
- uses : actions/upload-artifact@v4
110
- with :
111
- name : macos_xcode_${{ matrix.xcode_version }}_meson_testlog
112
- path : builddir/meson-logs/testlog.txt
90
+ run : meson test -C builddir -v --test-args='show --mode tree --verbose ci --result fail'
113
91
114
92
build_msys :
115
93
name : Building on MSYS ${{ matrix.architecture }}
@@ -145,18 +123,8 @@ jobs:
145
123
- name : Configure
146
124
run : meson setup builddir --fatal-meson-warnings -Dwerror=true -Dwith_test=enabled -Dwarning_level=3
147
125
148
- - name : Compile
149
- run : meson compile -C builddir
150
-
151
126
- name : Run Tests
152
- run : meson test -C builddir -v
153
-
154
- - name : Upload Test Log
155
- if : failure()
156
- uses : actions/upload-artifact@v4
157
- with :
158
- name : msys_${{ matrix.architecture }}_meson_testlog
159
- path : builddir/meson-logs/testlog.txt
127
+ run : meson test -C builddir -v --test-args='show --mode tree --verbose ci --result fail'
160
128
161
129
build_mingw :
162
130
name : Building on MinGW ${{ matrix.architecture }}
@@ -196,18 +164,8 @@ jobs:
196
164
- name : Configure
197
165
run : meson setup builddir --fatal-meson-warnings -Dwerror=true -Dwith_test=enabled -Dwarning_level=3
198
166
199
- - name : Compile
200
- run : meson compile -C builddir
201
-
202
167
- name : Run Tests
203
- run : meson test -C builddir -v
204
-
205
- - name : Upload Test Log
206
- if : failure()
207
- uses : actions/upload-artifact@v4
208
- with :
209
- name : mingw_${{ matrix.architecture }}_meson_testlog
210
- path : builddir/meson-logs/testlog.txt
168
+ run : meson test -C builddir -v --test-args='show --mode tree --verbose ci --result fail'
211
169
212
170
build_posix :
213
171
name : Build on Linux ${{ matrix.distro }}
@@ -249,8 +207,7 @@ jobs:
249
207
/bin/bash -c "
250
208
sudo apt update
251
209
meson setup builddir --fatal-meson-warnings -Dwerror=true -Dwith_test=enabled -Dwarning_level=3
252
- meson compile -C builddir
253
- meson test -C builddir -v"
210
+ meson test -C builddir -v --test-args='show --mode tree --verbose ci --result fail'"
254
211
255
212
build_cross :
256
213
name : Building on Bedrock ${{ matrix.architecture }}
@@ -344,4 +301,8 @@ jobs:
344
301
345
302
- name : Build the Project
346
303
run : |
347
- meson compile -C builddir
304
+ meson compile -C builddir
305
+
306
+ - name : Test the Project
307
+ run : |
308
+ meson test -C builddir -v --test-args='show --mode tree --verbose ci --result fail'
0 commit comments