Commit 282f756
committed
ci: use setup-msvc-dev action instead of a hard-coded vcvars path
The windows-cmake job set up the MSVC environment by calling a hard-coded
"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
in its NMake, clang-cl and Meson steps. The hosted windows-latest image no
longer has Visual Studio installed under that "Enterprise" path, so those steps
started failing with "The system cannot find the path specified."
Set up the developer environment once per job with the
TheMrMilchmann/setup-msvc-dev action -- it locates the installed toolchain (no
hard-coded path or edition) and exports the environment for the following steps
-- and drop all the hard-coded vcvars64.bat calls.
Assisted-by: claude-code:claude-opus-4-81 parent 4957824 commit 282f756
1 file changed
Lines changed: 4 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
196 | 200 | | |
197 | 201 | | |
198 | 202 | | |
| |||
235 | 239 | | |
236 | 240 | | |
237 | 241 | | |
238 | | - | |
239 | 242 | | |
240 | 243 | | |
241 | 244 | | |
242 | 245 | | |
243 | 246 | | |
244 | | - | |
245 | 247 | | |
246 | 248 | | |
247 | 249 | | |
| |||
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
257 | | - | |
258 | 259 | | |
259 | 260 | | |
260 | 261 | | |
| |||
271 | 272 | | |
272 | 273 | | |
273 | 274 | | |
274 | | - | |
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
281 | 280 | | |
282 | 281 | | |
283 | 282 | | |
| |||
290 | 289 | | |
291 | 290 | | |
292 | 291 | | |
293 | | - | |
294 | 292 | | |
295 | 293 | | |
296 | 294 | | |
| |||
340 | 338 | | |
341 | 339 | | |
342 | 340 | | |
343 | | - | |
344 | 341 | | |
345 | 342 | | |
346 | 343 | | |
| |||
0 commit comments