From eb2fccee6268d11cca2f9ca941d4c1c66834b41a Mon Sep 17 00:00:00 2001 From: itzParsaYC <115403383+ParsaAslaniYC@users.noreply.github.com> Date: Sun, 6 Oct 2024 11:29:06 +0330 Subject: [PATCH] Update windows.yml --- .github/workflows/windows.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index e6aaf35..8a26a06 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -22,9 +22,14 @@ jobs: with: version: '6.7.1' # Adjust the version as needed + - name: Find Visual Studio installation path + id: find-vs + run: | + echo "::set-output name=vs_path::$(vswhere -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath)" + - name: Set up MSVC environment run: | - cmd.exe /c "call `"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat`" x64 && set" + cmd.exe /c "call `"${{ steps.find-vs.outputs.vs_path }}\VC\Auxiliary\Build\vcvarsall.bat`" x64 && set" - name: Generate Makefile run: qmake -tp vc -config release