Updated CI windows image to 2022

This commit is contained in:
Takatoshi Kondo
2025-07-04 11:28:04 +09:00
parent 39aec8fe75
commit 3b0fc097f0

View File

@@ -195,11 +195,11 @@ jobs:
windows: windows:
name: ${{ format('Windows cxx{0}', matrix.cxx) }} name: ${{ format('Windows cxx{0}', matrix.cxx) }}
runs-on: windows-2019 runs-on: windows-2022
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
# MSVC2019 only supports /std:c++14, /std:c++17 and /std:c++latest # MSVC2022 only supports /std:c++14, /std:c++17 and /std:c++latest
cxx: [14, 17, 20] cxx: [14, 17, 20]
pp_flag: ["/Zc:preprocessor-", "/Zc:preprocessor"] pp_flag: ["/Zc:preprocessor-", "/Zc:preprocessor"]
steps: steps:
@@ -228,7 +228,7 @@ jobs:
md build md build
cmake ` cmake `
-A x64 ` -A x64 `
-G "Visual Studio 16 2019" ` -G "Visual Studio 17 2022" `
-D CMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" ` -D CMAKE_TOOLCHAIN_FILE="C:/vcpkg/scripts/buildsystems/vcpkg.cmake" `
-D MSGPACK_BUILD_TESTS=ON ` -D MSGPACK_BUILD_TESTS=ON `
-D $CPPVER ` -D $CPPVER `