ci: Replace ilammy/msvc-dev-cmd with manual MSVC setup

The `ilammy/msvc-dev-cmd` repository seems abandoned and should be
considered unsafe. This updates the workflow to load the MSVC
environment variables directly via `vcvars64.bat`.

See https://learn.microsoft.com/en-us/cpp/build/building-on-the-command-line.
This commit is contained in:
Hennadii Stepanov
2026-04-13 11:54:22 +01:00
parent 7262adb4b4
commit 285cb788e9

View File

@@ -604,11 +604,10 @@ jobs:
steps:
- *CHECKOUT
- name: Add cl.exe to PATH
uses: ilammy/msvc-dev-cmd@v1
- name: C++ (public headers)
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cl.exe -c -WX -TP include/*.h
cxx_fpermissive_debian: