Skip to content

Commit 7952b18

Browse files
committed
260508.142715.CST [skip ci] replace windows-2025 with windows-2022 when MEX is involved, as the former will be with Visual Studio 2026 starting from 2020606, and MEX on MATLAB R2026a does not work with it
1 parent 7214066 commit 7952b18

3 files changed

Lines changed: 15 additions & 15 deletions

File tree

.github/workflows/compile_mex.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,23 @@ jobs:
3333
matrix:
3434
# As of 20260507 and MATLAB R2026a, MEX does not work on windows-latest due to the version
3535
# of MS Visual Studio, which is Visual Studio 2026 on windows-latest as of 20260507.
36-
os: [ubuntu-22.04, ubuntu-latest, macos-15-intel, macos-26-intel, windows-2025]
36+
os: [ubuntu-22.04, ubuntu-latest, macos-15-intel, macos-26-intel, windows-2022]
3737
matlab: [R2020b, R2021a, R2021b, R2022a, R2022b, R2023a, R2023b, R2024a, R2024b, R2025a, R2025b, R2026a, latest]
3838

3939
exclude:
4040

41-
# Below R2022a, MEX does not work on windows-2025 due to the version of MS Visual Studio;
41+
# Below R2022a, MEX does not work on windows-2022 due to the version of MS Visual Studio;
4242
# R2022a/b should work according to the documentation of MathWorks and GitHub Actions, but
4343
# they do not as of July 2025.
44-
- os: windows-2025
44+
- os: windows-2022
4545
matlab: R2020b
46-
- os: windows-2025
46+
- os: windows-2022
4747
matlab: R2021a
48-
- os: windows-2025
48+
- os: windows-2022
4949
matlab: R2021b
50-
- os: windows-2025
50+
- os: windows-2022
5151
matlab: R2022a
52-
- os: windows-2025
52+
- os: windows-2022
5353
matlab: R2022b
5454

5555
# MATLAB drops support for macOS on Intel starting from R2026a.

.github/workflows/test_matlab.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,23 @@ jobs:
2727

2828
# The matrix is the same as that of compile_mex.yml. We intend to test all supported combinations.
2929
matrix:
30-
os: [ubuntu-22.04, ubuntu-latest, macos-15-intel, macos-26-intel, windows-2025]
30+
os: [ubuntu-22.04, ubuntu-latest, macos-15-intel, macos-26-intel, windows-2022]
3131
matlab: [R2020b, R2021a, R2021b, R2022a, R2022b, R2023a, R2023b, R2024a, R2024b, R2025a, R2025b, R2026a, latest]
3232

3333
exclude:
3434

35-
# Below R2022a, MEX does not work on windows-2025 due to the version of MS Visual Studio;
35+
# Below R2022a, MEX does not work on windows-2022 due to the version of MS Visual Studio;
3636
# R2022a/b should work according to the documentation of MathWorks and GitHub Actions, but
3737
# they do not as of July 2025
38-
- os: windows-2025
38+
- os: windows-2022
3939
matlab: R2020b
40-
- os: windows-2025
40+
- os: windows-2022
4141
matlab: R2021a
42-
- os: windows-2025
42+
- os: windows-2022
4343
matlab: R2021b
44-
- os: windows-2025
44+
- os: windows-2022
4545
matlab: R2022a
46-
- os: windows-2025
46+
- os: windows-2022
4747
matlab: R2022b
4848

4949
# MATLAB drops support for macOS on Intel starting from R2026a.

.github/workflows/test_matlab_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
matrix:
2323
# As of 20260507 and MATLAB R2026a, MEX does not work on windows-latest due to the version
2424
# of MS Visual Studio, which is Visual Studio 2026 on windows-latest as of 20260507.
25-
os: [windows-2025]
25+
os: [windows-2022]
2626
matlab: [R2023a, latest] # The earliest and latest supported versions of MATLAB
2727

2828
steps:

0 commit comments

Comments
 (0)