@@ -20,35 +20,76 @@ jobs:
20
20
matrix :
21
21
config :
22
22
- {
23
- name : " Linux g++ 10.2" ,
23
+ name : " Linux g++ 10.2 C++17 " ,
24
24
os : ubuntu-20.04,
25
25
cxx : " g++-10" ,
26
+ cxxver : 17,
26
27
}
27
28
- {
28
- name : " Linux clang-10" ,
29
+ name : " Linux g++ 10.2 C++20" ,
30
+ os : ubuntu-20.04,
31
+ cxx : " g++-10" ,
32
+ cxxver : 20,
33
+ }
34
+ - {
35
+ name : " Linux clang-10 C++17" ,
29
36
os : ubuntu-20.04,
30
37
cxx : " clang++-10" ,
31
38
cxx_flags : -stdlib=libc++,
32
39
exe_linker_flags : -lc++,
40
+ cxxver : 17,
41
+ }
42
+ - {
43
+ name : " Linux clang-10 C++20" ,
44
+ os : ubuntu-20.04,
45
+ cxx : " clang++-10" ,
46
+ cxx_flags : -stdlib=libc++,
47
+ exe_linker_flags : -lc++,
48
+ cxxver : 20,
49
+ }
50
+ - {
51
+ name : " Linux clang-11 C++17" ,
52
+ os : ubuntu-20.04,
53
+ cxx : " clang++-11" ,
54
+ cxx_flags : -stdlib=libc++,
55
+ exe_linker_flags : -lc++,
56
+ cxxver : 17,
33
57
}
34
58
- {
35
- name : " Linux clang-11" ,
59
+ name : " Linux clang-11 C++20 " ,
36
60
os : ubuntu-20.04,
37
61
cxx : " clang++-11" ,
38
62
cxx_flags : -stdlib=libc++,
39
63
exe_linker_flags : -lc++,
64
+ cxxver : 20,
40
65
}
41
66
- {
42
- name : " Windows MSVC 2017 (x64)" ,
67
+ name : " Windows MSVC 2017 (x64) C++17 " ,
43
68
os : windows-2016,
44
69
cxx : " cl" ,
45
70
environment_script : " C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Auxiliary/Build/vcvars64.bat" ,
71
+ cxxver : 17,
72
+ }
73
+ - {
74
+ name : " Windows MSVC 2017 (x64) C++20" ,
75
+ os : windows-2016,
76
+ cxx : " cl" ,
77
+ environment_script : " C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Auxiliary/Build/vcvars64.bat" ,
78
+ cxxver : 20,
79
+ }
80
+ - {
81
+ name : " Windows MSVC 2019 (x64) C++17" ,
82
+ os : windows-latest,
83
+ cxx : " cl" ,
84
+ environment_script : " C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat" ,
85
+ cxxver : 17,
46
86
}
47
87
- {
48
- name : " Windows MSVC 2019 (x64)" ,
88
+ name : " Windows MSVC 2019 (x64) C++20 " ,
49
89
os : windows-latest,
50
90
cxx : " cl" ,
51
91
environment_script : " C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Auxiliary/Build/vcvars64.bat" ,
92
+ cxxver : 20,
52
93
}
53
94
54
95
steps :
@@ -106,7 +147,7 @@ jobs:
106
147
107
148
cmake $GITHUB_WORKSPACE \
108
149
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
109
- -DCMAKE_CXX_STANDARD=20 \
150
+ -DCMAKE_CXX_STANDARD=${{ matrix.config.cxxver }} \
110
151
-DBUILD_TESTING=ON \
111
152
-DCMAKE_CXX_FLAGS=${{ matrix.config.cxx_flags }} \
112
153
-DCMAKE_EXE_LINKER_FLAGS=${{ matrix.config.exe_linker_flags }} \
0 commit comments