Skip to content

Commit 9d189ab

Browse files
committed
Fix: Add MSBuild setup action to configure environment properly
1 parent 41992b1 commit 9d189ab

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/check-versions.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ jobs:
99
check-versions:
1010
runs-on: windows-latest
1111
steps:
12-
- name: Check Visual Studio Version
12+
- name: Setup MSBuild
13+
uses: microsoft/setup-msbuild@v1
14+
15+
- name: Check Visual Studio and MSBuild
1316
run: |
1417
Write-Host "=== Visual Studio ===" -ForegroundColor Cyan
15-
& "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -architecture=x64 > $null 2>&1
1618
msbuild -version
1719
Write-Host ""
1820
@@ -23,6 +25,7 @@ jobs:
2325
Write-Host ""
2426
2527
- name: Check Available Tools
28+
shell: pwsh
2629
run: |
2730
Write-Host "=== CMake ===" -ForegroundColor Cyan
2831
cmake --version
@@ -41,6 +44,7 @@ jobs:
4144
Write-Host ""
4245
4346
- name: Check Visual Studio Installation Details
47+
shell: pwsh
4448
run: |
4549
Write-Host "=== Visual Studio Installation Path ===" -ForegroundColor Cyan
4650
Get-ChildItem "C:\Program Files\Microsoft Visual Studio\2022" -Directory
@@ -51,6 +55,7 @@ jobs:
5155
Write-Host ""
5256
5357
- name: Check If Qt is Already Installed
58+
shell: pwsh
5459
run: |
5560
Write-Host "=== Qt Installation Check ===" -ForegroundColor Cyan
5661
if (Test-Path "C:\Qt") {
@@ -61,6 +66,7 @@ jobs:
6166
Write-Host ""
6267
6368
- name: Environment Information
69+
shell: pwsh
6470
run: |
6571
Write-Host "=== Environment ===" -ForegroundColor Cyan
6672
Write-Host "RUNNER_OS: $env:RUNNER_OS"

0 commit comments

Comments
 (0)