Skip to content

Commit dce3aef

Browse files
committed
Windows 2025 currently ships with Visual Studio 2022
1 parent 44db885 commit dce3aef

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

Diff for: .github/workflows/tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,13 @@ jobs:
132132
- name: Run Python Tests
133133
run: python -m pytest
134134
- name: Run Tests (macOS or Linux)
135-
if: "!startsWith(matrix.os, 'windows')"
135+
if: runner.os != 'Windows'
136136
shell: bash
137137
run: npm test --python="${pythonLocation}/python"
138138
env:
139139
FULL_TEST: ${{ (matrix.node == '22.x' && matrix.python == '3.13') && '1' || '0' }}
140140
- name: Run Tests (Windows)
141-
if: startsWith(matrix.os, 'windows')
141+
if: runner.os == 'Windows'
142142
shell: bash # Building wasm on Windows requires using make generator, it only works in bash
143143
run: npm run test --python="${pythonLocation}\\python.exe"
144144
env:

Diff for: .github/workflows/visual-studio.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- os: windows-2022
2323
msvs-version: 2022
2424
- os: windows-2025
25-
msvs-version: 2025
25+
msvs-version: 2022 # Fix this when Visual Studio 2025 is released
2626
runs-on: ${{ matrix.os }}
2727
steps:
2828
- name: Checkout Repository

Diff for: lib/find-visualstudio.js

+3-6
Original file line numberDiff line numberDiff line change
@@ -385,14 +385,11 @@ class VisualStudioFinder {
385385
ret.versionYear = 2019
386386
return ret
387387
}
388-
if (ret.versionMajor === 17) {
388+
// Fix this when Visual Studio 2025 ships
389+
if ([17, 18].includes(ret.versionMajor)) {
389390
ret.versionYear = 2022
390391
return ret
391392
}
392-
if (ret.versionMajor === 18) {
393-
ret.versionYear = 2025
394-
return ret
395-
}
396393
this.log.silly('- unsupported version:', ret.versionMajor)
397394
return {}
398395
}
@@ -461,7 +458,7 @@ class VisualStudioFinder {
461458
} else if (versionYear === 2022) {
462459
return 'v143'
463460
} else if (versionYear === 2025) {
464-
return 'v144'
461+
return 'v143' // Fix this when Visual Studio 2025 ships
465462
}
466463
this.log.silly('- invalid versionYear:', versionYear)
467464
return null

0 commit comments

Comments
 (0)