File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9393 - name : Install system dependencies (Windows)
9494 if : matrix.os == 'windows-latest'
9595 run : |
96- # Install Visual Studio Build Tools for Windows
97- choco install visualstudio2019buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended" -y
98- # Install Windows SDK
99- choco install windows-sdk-10-version-2004-all -y
96+ # Install Visual Studio Build Tools for Windows (2022 version)
97+ choco install visualstudio2022buildtools --package-parameters "--add Microsoft.VisualStudio.Workload.VCTools --includeRecommended" -y
10098
10199 - name : Setup Windows environment
102100 if : matrix.os == 'windows-latest'
@@ -106,8 +104,12 @@ jobs:
106104 refreshenv
107105 # Verify that required tools are available
108106 echo "Checking installed tools..."
109- cl.exe /? > $null 2>&1 && echo "Visual Studio Build Tools: OK" || echo "Visual Studio Build Tools: NOT FOUND"
110- echo "Windows SDK should be available in PATH"
107+ echo "Visual Studio Build Tools should be available"
108+ if ($env:PATH -like '*Visual Studio*') {
109+ echo "Visual Studio found in PATH"
110+ } else {
111+ echo "Visual Studio not found in PATH"
112+ }
111113
112114 - name : Install dependencies
113115 run : |
You can’t perform that action at this time.
0 commit comments