Skip to content

Commit

Permalink
Update windows.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ParsaAslaniYC authored Oct 6, 2024
1 parent 4a440c5 commit eb2fcce
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb2fcce

Please sign in to comment.