Skip to content

Commit 3b729e9

Browse files
committed
GHA: Windows: upgrade to VS 2022
1 parent 15a8114 commit 3b729e9

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
matrix:
2222
bits: [32, 64]
2323

24-
runs-on: windows-2019
24+
runs-on: windows-2025
2525

2626
env:
2727
BITS: '${{ matrix.bits }}'

doc/win-dev.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ function ThrowOnNativeFailure {
1111
}
1212

1313

14-
$VsVersion = 2019
15-
$MsvcVersion = '14.2'
14+
$VsVersion = 2022
15+
$MsvcVersion = '14.3'
1616
$BoostVersion = @(1, 88, 0)
1717
$OpensslVersion = '3_0_16'
1818

@@ -74,7 +74,6 @@ try {
7474
if (-not $Env:GITHUB_ACTIONS) {
7575
choco install -y `
7676
"visualstudio${VsVersion}community" `
77-
"visualstudio${VsVersion}-workload-netcoretools" `
7877
"visualstudio${VsVersion}-workload-vctools" `
7978
"visualstudio${VsVersion}-workload-manageddesktop" `
8079
"visualstudio${VsVersion}-workload-nativedesktop" `
@@ -83,6 +82,7 @@ if (-not $Env:GITHUB_ACTIONS) {
8382
git `
8483
cmake `
8584
winflexbison3 `
85+
netfx-4.6-devpack `
8686
windows-sdk-8.1 `
8787
wixtoolset
8888
ThrowOnNativeFailure

tools/win32/configure-dev.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Set-PsDebug -Trace 1
22

3-
# Specify default targets for VS 2019 for developers.
3+
# Specify default targets for VS 2022 for developers.
44

55
if (-not (Test-Path env:ICINGA2_BUILDPATH)) {
66
$env:ICINGA2_BUILDPATH = '.\debug'
@@ -22,7 +22,7 @@ if (-not ($env:PATH -contains $env:CMAKE_PATH)) {
2222
$env:PATH = $env:CMAKE_PATH + ';' + $env:PATH
2323
}
2424
if (-not (Test-Path env:CMAKE_GENERATOR)) {
25-
$env:CMAKE_GENERATOR = 'Visual Studio 16 2019'
25+
$env:CMAKE_GENERATOR = 'Visual Studio 17 2022'
2626
}
2727
if (-not (Test-Path env:CMAKE_GENERATOR_PLATFORM)) {
2828
$env:CMAKE_GENERATOR_PLATFORM = 'x64'
@@ -37,7 +37,7 @@ if (-not (Test-Path env:BOOST_ROOT)) {
3737
$env:BOOST_ROOT = 'c:\local\boost_1_88_0'
3838
}
3939
if (-not (Test-Path env:BOOST_LIBRARYDIR)) {
40-
$env:BOOST_LIBRARYDIR = 'c:\local\boost_1_88_0\lib64-msvc-14.2'
40+
$env:BOOST_LIBRARYDIR = 'c:\local\boost_1_88_0\lib64-msvc-14.3'
4141
}
4242
if (-not (Test-Path env:FLEX_BINARY)) {
4343
$env:FLEX_BINARY = 'C:\ProgramData\chocolatey\bin\win_flex.exe'

tools/win32/configure.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (-not ($env:PATH -contains $env:CMAKE_PATH)) {
1717
$env:PATH = $env:CMAKE_PATH + ';' + $env:PATH
1818
}
1919
if (-not (Test-Path env:CMAKE_GENERATOR)) {
20-
$env:CMAKE_GENERATOR = 'Visual Studio 16 2019'
20+
$env:CMAKE_GENERATOR = 'Visual Studio 17 2022'
2121
}
2222
if (-not (Test-Path env:BITS)) {
2323
$env:BITS = 64
@@ -39,7 +39,7 @@ if (-not (Test-Path env:BOOST_ROOT)) {
3939
$env:BOOST_ROOT = "c:\local\boost_1_88_0-Win${env:BITS}"
4040
}
4141
if (-not (Test-Path env:BOOST_LIBRARYDIR)) {
42-
$env:BOOST_LIBRARYDIR = "c:\local\boost_1_88_0-Win${env:BITS}\lib${env:BITS}-msvc-14.2"
42+
$env:BOOST_LIBRARYDIR = "c:\local\boost_1_88_0-Win${env:BITS}\lib${env:BITS}-msvc-14.3"
4343
}
4444
if (-not (Test-Path env:FLEX_BINARY)) {
4545
$env:FLEX_BINARY = 'C:\ProgramData\chocolatey\bin\win_flex.exe'

tools/win32/load-vsenv.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if (-not (Test-Path $BUILD)) {
1818
if (Test-Path env:VS_INSTALL_PATH) {
1919
$VSBASE = $env:VS_INSTALL_PATH
2020
} else {
21-
$VSBASE = "C:\Program Files (x86)\Microsoft Visual Studio\2019"
21+
$VSBASE = "C:\Program Files\Microsoft Visual Studio\2022"
2222
}
2323

2424
if (Test-Path env:BITS) {

0 commit comments

Comments
 (0)