Skip to content

Commit 9992368

Browse files
committed
Restrict MSVC compiler to 2022
by using windows-2022 (which stands for Windows Server 2022) instead of windows-latest. Otherwise there is a compile error regarding usage of stdext in Qt5; stdext was removed in MSVC 2026.
1 parent 8e5f465 commit 9992368

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ jobs:
340340
# qt-version: '5.9.*'
341341
# pythonqtall-config: 'PythonQtCore PythonQtGui PythonQtMultimedia'
342342

343-
runs-on: windows-latest
343+
runs-on: windows-2022
344344
steps:
345345

346346
- name: Checkout PythonQt

.github/workflows/build_latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
os: ['ubuntu', 'windows']
2323
qt-version: [ '5.12.*', '5.15.*', '6.11.*' ]
2424
python-version: [ '3.12' ]
25-
runs-on: ${{ matrix.os }}-latest
25+
runs-on: ${{ matrix.os == 'windows' && 'windows-2022' || 'ubuntu-latest' }}
2626
steps:
2727

2828
- name: Install MSVC

0 commit comments

Comments
 (0)