Skip to content

Commit 8df1524

Browse files
committed
chore(github-actions): update Windows build tools installation to 2022
1 parent f370c39 commit 8df1524

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,8 @@ jobs:
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: |

0 commit comments

Comments
 (0)