Skip to content

Commit

Permalink
Update runners to windows-2022
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre 'Kidev' Poumaroux <[email protected]>
  • Loading branch information
jdpurcell authored and Kidev committed Dec 19, 2024
1 parent 3f108bc commit 1aa5216
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- job: Windows
dependsOn: MatricesGenerator
pool:
vmImage: 'windows-2019'
vmImage: 'windows-2022'
strategy:
matrix: $[ dependencies.MatricesGenerator.outputs['mtrx.windows'] ]
variables:
Expand Down
20 changes: 3 additions & 17 deletions ci/steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,16 +237,8 @@ steps:
} else {
Write-Host '##vso[task.setvariable variable=ARCHITECTURE]x86'
}
if ('$(ARCH)' -like '*msvc2022*') {
if ('$(ARCH)' -like '*msvc*') {
Write-Host '##vso[task.setvariable variable=VSVER]2022'
# Set C++20 and __cplusplus flags for MSVC 2022
Write-Host '##vso[task.setvariable variable=QMAKE_FLAGS]/std:c++20 /Zc:__cplusplus'
} elseif ('$(ARCH)' -like '*msvc2019*') {
Write-Host '##vso[task.setvariable variable=VSVER]2019'
} elseif ('$(ARCH)' -like '*msvc2017*') {
Write-Host '##vso[task.setvariable variable=VSVER]2017'
} else {
Write-Host '##vso[task.setvariable variable=VSVER]2015'
}
cd $(WIN_QT_BINDIR)
unzip $(Build.SourcesDirectory)\ci\jom_1_1_3.zip
Expand Down Expand Up @@ -290,13 +282,7 @@ steps:
cd $(Build.BinariesDirectory)\tests
7z x $(Build.SourcesDirectory)\ci\helloworld.7z
cd ..
# Add QMAKE_CXXFLAGS for MSVC 2022
if ('$(VSVER)' -eq '2022') {
qmake "QMAKE_CXXFLAGS += $(QMAKE_FLAGS)" $(Build.BinariesDirectory)\tests\helloworld
} else {
qmake $(Build.BinariesDirectory)\tests\helloworld
}
qmake $(Build.BinariesDirectory)\tests\helloworld
jom
} elseif ( $env:TOOLCHAIN -eq 'MINGW' ) {
python -m aqt install-tool $(if (($QT_BASE_MIRROR + "") -ne "") { "-b $QT_BASE_MIRROR" } else {""}) `
Expand Down Expand Up @@ -408,7 +394,7 @@ steps:
eq(variables['Agent.OS'], 'Windows_NT'),
eq(variables['TOOLCHAIN'], 'MSVC'),
ne(variables['MODULE'], ''),
ne(variables['VSVER'], '2019')
ne(variables['VSVER'], '2022')
)
displayName: build test with qmake with MSVC with extra module
- bash: |
Expand Down

0 comments on commit 1aa5216

Please sign in to comment.