From 4a3ed49f3f28add580ac1848e5315284a0fa4bfb Mon Sep 17 00:00:00 2001 From: sukibaby <163092272+sukibaby@users.noreply.github.com> Date: Fri, 30 Aug 2024 02:29:18 -0700 Subject: [PATCH] Update ci.yml with "vswhere" Prevents an issue where the runner may not be able to find the compiler. --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 060175b23c..3dc8572764 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: