Skip to content

Commit f5ef759

Browse files
authored
Add MSVC 2022 to the CI (#50)
1 parent b0971c4 commit f5ef759

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/cmake.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,20 @@ jobs:
151151
environment_script: "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
152152
cxxver: 20,
153153
}
154+
- {
155+
name: "Windows MSVC 2022 (x64) C++17",
156+
os: windows-2022,
157+
cxx: "cl",
158+
environment_script: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
159+
cxxver: 17,
160+
}
161+
- {
162+
name: "Windows MSVC 2022 (x64) C++20",
163+
os: windows-2022,
164+
cxx: "cl",
165+
environment_script: "C:/Program Files/Microsoft Visual Studio/2022/Enterprise/VC/Auxiliary/Build/vcvars64.bat",
166+
cxxver: 20,
167+
}
154168

155169
steps:
156170
- uses: actions/checkout@v2

test/recursive_generator_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ TEST_CASE("exception thrown from recursive call can be caught by caller")
247247

248248
TEST_CASE("exceptions thrown from nested call can be caught by caller")
249249
{
250-
#if _MSC_VER == 1929 && _MSVC_LANG == 202002L
250+
#if _MSC_VER >= 1929 && _MSVC_LANG == 202002L
251251
/*
252252
* Crashes. Known bug, reported in
253253
* https://github.com/andreasbuhr/cppcoro/issues/53

0 commit comments

Comments
 (0)