@@ -96,13 +96,13 @@ jobs:
9696 }
9797 - {
9898 name : " Windows Latest MSVC Debug" ,
99- os : windows-latest ,
99+ os : windows-2022 ,
100100 build_type : " Debug" , cc: "cl", cxx: "cl",
101101 build_gen : " NMake Makefiles"
102102 }
103103 - {
104104 name : " Windows Latest MSVC Release" ,
105- os : windows-latest ,
105+ os : windows-2022 ,
106106 build_type : " Release" , cc: "cl", cxx: "cl",
107107 build_gen : " NMake Makefiles"
108108 }
@@ -117,7 +117,7 @@ jobs:
117117 with :
118118 url : " https://github.com/pffang/libiconv-for-Windows/releases/download/v1.16/libiconv-for-Windows_1.16.7z"
119119 target : .
120- if : matrix.config.os == 'windows-latest '
120+ if : matrix.config.os == 'windows-2022 '
121121
122122 - name : Install LaTeX (Linux)
123123 run : |
@@ -172,7 +172,7 @@ jobs:
172172 command : |
173173 choco install miktex --debug --verbose --no-progress --params "/Set:basic" -y
174174 if ($?) { echo "C:\Program Files\MiKTeX\miktex\bin\x64" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 }
175- if : matrix.config.os == 'windows-latest '
175+ if : matrix.config.os == 'windows-2022 '
176176
177177 - name : Configure MikTeX (Windows)
178178 run : |
@@ -183,7 +183,7 @@ jobs:
183183 initexmf --admin --verbose --update-fndb
184184 initexmf --admin --verbose --mklinks --force
185185 updmap --admin
186- if : matrix.config.os == 'windows-latest '
186+ if : matrix.config.os == 'windows-2022 '
187187
188188 - name : Install Ghostscript (Linux)
189189 run : sudo apt-get install ghostscript
@@ -192,7 +192,7 @@ jobs:
192192 - name : Install Ghostscript (Windows)
193193 run :
194194 choco install ghostscript
195- if : matrix.config.os == 'windows-latest '
195+ if : matrix.config.os == 'windows-2022 '
196196
197197 - name : Setting Ghostscript paths (Windows)
198198 shell : bash
@@ -201,7 +201,7 @@ jobs:
201201 export PATH="$GSpath:$PATH"
202202 export GSpath=`echo "$GSpath" | sed -e "s%/c%C:%"`
203203 echo "$GSpath" >> $GITHUB_PATH
204- if : matrix.config.os == 'windows-latest '
204+ if : matrix.config.os == 'windows-2022 '
205205
206206 - name : Install xmllint (Linux)
207207 run : sudo apt-get install libxml2-utils
@@ -226,7 +226,7 @@ jobs:
226226 run : |
227227 #Choco-Install -PackageName winflexbison
228228 choco install winflexbison3
229- if : matrix.config.os == 'windows-latest '
229+ if : matrix.config.os == 'windows-2022 '
230230
231231 - name : Install Graphviz (Linux)
232232 run : sudo apt-get install graphviz
@@ -247,24 +247,23 @@ jobs:
247247 - name : Install Graphviz (Windows)
248248 run :
249249 choco install graphviz.portable
250- if : matrix.config.os == 'windows-latest'
251-
252- # - name: Setup VS Environment (Windows)
253- # uses: seanmiddleditch/gha-setup-vsdevenv@master
254- # toolset_version: 14.3
255- # if: matrix.config.os == 'windows-latest'
250+ if : matrix.config.os == 'windows-2022'
256251
257252 - name : Setup VS Environment (Windows)
258- uses : microsoft/setup-msbuild@v2
259- with :
260- vs-version : ' [17.0,18.0)' # force VS 2022 = 17.x, disable VS 2025 (18.x)
261- if : startsWith(matrix.config.os, 'windows-')
253+ uses : seanmiddleditch/gha-setup-vsdevenv@master
254+ if : matrix.config.os == 'windows-2022'
255+
256+ # - name: Setup VS Environment (Windows)
257+ # uses: microsoft/setup-msbuild@v2
258+ # with:
259+ # vs-version: '[17.0,18.0)' # force VS 2022 = 17.x, disable VS 2025 (18.x)
260+ # if: startsWith(matrix.config.os, 'windows-')
262261
263262 - name : Refresh Env (Windows)
264263 run : |
265264 Import-Module $env:ChocolateyInstall\helpers\chocolateyProfile.psm1
266265 refreshenv
267- if : matrix.config.os == 'windows-latest '
266+ if : matrix.config.os == 'windows-2022 '
268267
269268 - name : Install Qt 6.8
270269 uses : jdpurcell/install-qt-action@v5
@@ -307,7 +306,7 @@ jobs:
307306 dot -V;
308307 echo "=== ghostscript ===";
309308 gs --version;
310- if : matrix.config.os != 'windows-latest '
309+ if : matrix.config.os != 'windows-2022 '
311310
312311 - name : Check tool versions (Windows)
313312 shell : bash
@@ -332,7 +331,7 @@ jobs:
332331 dot -V;
333332 echo "=== ghostscript ===";
334333 gswin64c --version;
335- if : matrix.config.os == 'windows-latest '
334+ if : matrix.config.os == 'windows-2022 '
336335
337336 - name : Configure
338337 shell : cmake -P {0}
@@ -394,7 +393,7 @@ jobs:
394393 if (NOT result EQUAL 0)
395394 message(FATAL_ERROR "Running tests failed!")
396395 endif()
397- if : matrix.config.os != 'windows-latest '
396+ if : matrix.config.os != 'windows-2022 '
398397
399398 - name : Run tests (Windows)
400399 shell : cmake -P {0}
@@ -410,7 +409,7 @@ jobs:
410409 if (NOT result EQUAL 0)
411410 message(FATAL_ERROR "Running tests failed!")
412411 endif()
413- if : matrix.config.os == 'windows-latest '
412+ if : matrix.config.os == 'windows-2022 '
414413
415414 - name : Generate documentation
416415 shell : cmake -P {0}
0 commit comments