diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 2847656..3ec68f0 100755 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -49,12 +49,14 @@ jobs: # Set up MSVC on Windows - name: Set up MSVC (Windows) if: matrix.os == 'windows-latest' - uses: microsoft/setup-msbuild@v1 # Ensure MSVC is set up - - name: Set up VC Environment (Windows) + uses: actions/setup-msbuild@v1 + + # Set up Visual Studio using vswhere + - name: Set up Visual Studio (Windows) if: matrix.os == 'windows-latest' - uses: microsoft/setup-vc@v1 - with: - arch: x64 + run: | + vswhere -products * -latest -property installationPath + export PATH="$PATH:/c/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/MSBuild/Current/Bin" # Set reusable strings - name: Set reusable strings