Update ci.yml with "vswhere"

Prevents an issue where the runner may not be able to find the compiler.
This commit is contained in:
sukibaby
2024-08-30 02:29:18 -07:00
committed by teejusb
parent c2cd37fdd2
commit 4a3ed49f3f
+7
View File
@@ -96,6 +96,13 @@ jobs:
- uses: actions/checkout@v4
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1
- name: Set up Visual Studio environment
run: |
$vsPath = &"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath
&"$vsPath\VC\Auxiliary\Build\vcvarsall.bat" x64
shell: pwsh
- name: Cache CMake build directory
uses: actions/cache@v4
with: