diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 55c325602d4..ded3b1976d3 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -20,7 +20,6 @@ on: jobs: build: - if: false strategy: fail-fast: false matrix: @@ -52,7 +51,10 @@ jobs: - name: Configure CMake shell: cmd run: | - call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=${{ matrix.arch }} + where /R "C:\Program Files\Microsoft Visual Studio" VsDevCmd.bat > vs_setup_path + set /p SETUP_VS=< vs_setup_path + call "%SETUP_VS%" -arch=${{ matrix.arch }} + cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{ matrix.build-type }} ^ -G "${{ matrix.generator }}" ^ -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake ^ @@ -62,5 +64,7 @@ jobs: - name: Build shell: cmd run: | - call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=${{ matrix.arch }} + set /p SETUP_VS=< vs_setup_path + call "%SETUP_VS%" -arch=${{ matrix.arch }} + del vs_setup_path cmake --build ${{github.workspace}}/build --config ${{ matrix.build-type }}