diff --git a/.github/workflows/main_build.yml b/.github/workflows/main_build.yml index de69ee6..ba8bc8f 100644 --- a/.github/workflows/main_build.yml +++ b/.github/workflows/main_build.yml @@ -26,6 +26,8 @@ jobs: - id: make_hosts_compress run: | $cl = (Get-ChildItem -Path "$Env:ProgramW6432\Microsoft Visual Studio\" -Recurse -Filter "cl.exe").FullName | Select-String ".*x64\\x64.*" + $dev = (Get-ChildItem -Path "$Env:ProgramW6432\Microsoft Visual Studio\" -Recurse -Filter "vsdevcmd.bat").FullName cd hostscompress || exit 255 + & $dev & $cl[-1] /c /Ycpch.h /std:c++20 /W4 /EHsc pch.cpp if (-Not (Test-Path -Path pch.pch)) { Exit 253 }