8
8
branches : [ main ]
9
9
10
10
jobs :
11
- windows_2022_vcpkg :
12
- name : Windows 2022 vcpkg cxx17 (static libs - dll)
11
+ windows_2022_vcpkg_submodule :
12
+ name : Windows 2022 vcpkg submodule versions cxx17 (static libs - dll)
13
13
runs-on : windows-2022
14
14
env :
15
+ # Set to the latest version of cmake 3.x
16
+ CMAKE_VERSION : ' 3.31.6'
17
+ # cxx17 is the default for windows-2022
15
18
CXX_STANDARD : ' 17'
16
19
steps :
17
20
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -26,10 +29,13 @@ jobs:
26
29
- name : Run DLL Tests
27
30
run : ./ci/do_ci.ps1 cmake.dll.install.test
28
31
29
- windows_2019_vcpkg :
30
- name : Windows 2019 vcpkg cxx14 (static libs)
32
+ windows_2019_vcpkg_submodule_min_cmake :
33
+ name : Windows 2019 vcpkg submodule versions minimum cmake cxx14 (static libs)
31
34
runs-on : windows-2019
32
35
env :
36
+ # cmake 3.15 is the minimum for windows builds (See https://github.com/open-telemetry/opentelemetry-cpp/pull/3349#discussion_r2030319430)
37
+ CMAKE_VERSION : ' 3.15.0'
38
+ # cxx14 is the default for windows-2019
33
39
CXX_STANDARD : ' 14'
34
40
steps :
35
41
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
47
53
runs-on : ubuntu-24.04
48
54
env :
49
55
INSTALL_TEST_DIR : ' /home/runner/install_test'
56
+ # CMake 3.28 is apt package version for Ubuntu 24.04
57
+ CMAKE_VERSION : ' 3.28.3'
58
+ # cxx17 is the default for Ubuntu 24.04
50
59
CXX_STANDARD : ' 17'
51
60
BUILD_TYPE : ' Debug'
52
61
steps :
@@ -71,12 +80,22 @@ jobs:
71
80
BUILD_SHARED_LIBS : ' ON'
72
81
run : ./ci/do_ci.sh cmake.install.test
73
82
74
- ubuntu_2404_script_build_grpc_1_71_0 :
75
- name : Ubuntu 24.04 script grpc 1.71.0 cxx17 (static libs)
83
+ ubuntu_2404_latest :
84
+ name : Ubuntu 24.04 latest versions cxx20 (static libs)
76
85
runs-on : ubuntu-24.04
77
86
env :
78
87
INSTALL_TEST_DIR : ' /home/runner/install_test'
88
+ # Set to the latest version of cmake 3.x
89
+ CMAKE_VERSION : ' 3.31.6'
90
+ # Set to the latest cxx standard supported by opentelemetry-cpp
79
91
CXX_STANDARD : ' 20'
92
+ # Versions below set to the latest version available
93
+ # The abseil and protobuf versions are taken from
94
+ # the grpc submodules at the GRPC_VERSION tag
95
+ GOOGLETEST_VERSION : ' 1.16.0'
96
+ ABSEIL_CPP_VERSION : ' 20240722.1'
97
+ PROTOBUF_VERSION : ' 29.0'
98
+ GRPC_VERSION : ' v1.71.0'
80
99
BUILD_TYPE : ' Debug'
81
100
steps :
82
101
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -88,10 +107,6 @@ jobs:
88
107
sudo -E ./ci/setup_cmake.sh
89
108
sudo -E ./ci/setup_googletest.sh
90
109
- name : Build abseil, protobuf, and grpc with ci scripts
91
- env :
92
- ABSEIL_CPP_VERSION : ' 20240722.1'
93
- PROTOBUF_VERSION : ' 29.0'
94
- GRPC_VERSION : ' v1.71.0'
95
110
run : |
96
111
sudo -E ./ci/install_abseil.sh
97
112
sudo -E ./ci/install_protobuf.sh
@@ -101,12 +116,20 @@ jobs:
101
116
BUILD_SHARED_LIBS : ' OFF'
102
117
run : ./ci/do_ci.sh cmake.install.test
103
118
104
- ubuntu_2204_script_build_grpc_1_55_0 :
105
- name : Ubuntu 22.04 script grpc 1.55.0 cxx17 (static libs - shared libs)
119
+ ubuntu_2204_stable :
120
+ name : Ubuntu 22.04 stable versions cxx17 (static libs - shared libs)
106
121
runs-on : ubuntu-22.04
107
122
env :
108
123
INSTALL_TEST_DIR : ' /home/runner/install_test'
124
+ # CMake 3.22 is the apt package version for Ubuntu 22.04
125
+ CMAKE_VERSION : ' 3.22.0'
109
126
CXX_STANDARD : ' 17'
127
+ # These are stable versions tested in the main ci workflow
128
+ # and defaults in the devcontainer
129
+ GOOGLETEST_VERSION : ' 1.14.0'
130
+ ABSEIL_CPP_VERSION : ' 20230125.3'
131
+ PROTOBUF_VERSION : ' 23.3'
132
+ GRPC_VERSION : ' v1.55.0'
110
133
BUILD_TYPE : ' Debug'
111
134
steps :
112
135
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -118,10 +141,6 @@ jobs:
118
141
sudo -E ./ci/setup_cmake.sh
119
142
sudo -E ./ci/setup_googletest.sh
120
143
- name : Build abseil, protobuf, and grpc with ci scripts
121
- env :
122
- ABSEIL_CPP_VERSION : ' 20230125.3'
123
- PROTOBUF_VERSION : ' 23.3'
124
- GRPC_VERSION : ' v1.55.0'
125
144
run : |
126
145
sudo -E ./ci/install_abseil.sh
127
146
sudo -E ./ci/install_protobuf.sh
@@ -135,12 +154,21 @@ jobs:
135
154
BUILD_SHARED_LIBS : ' ON'
136
155
run : ./ci/do_ci.sh cmake.install.test
137
156
138
- ubuntu_2204_script_build_grpc_1_49_2 :
139
- name : Ubuntu 22.04 script grpc 1.49.2 cxx14 (static libs - shared libs)
157
+ ubuntu_2204_minimum :
158
+ name : Ubuntu 22.04 minimum versions cxx14 (static libs - shared libs)
140
159
runs-on : ubuntu-22.04
141
160
env :
142
161
INSTALL_TEST_DIR : ' /home/runner/install_test'
162
+ # Set to the current minimum version of cmake
163
+ CMAKE_VERSION : ' 3.14.0'
164
+ # cxx14 is the default for Ubuntu 22.04
143
165
CXX_STANDARD : ' 14'
166
+ # This is the apt package version of googletest for Ubuntu 22.04
167
+ GOOGLETEST_VERSION : ' 1.11.0'
168
+ # These are minimum versions tested in the main ci workflow
169
+ ABSEIL_CPP_VERSION : ' 20220623.2'
170
+ PROTOBUF_VERSION : ' 21.12'
171
+ GRPC_VERSION : ' v1.49.2'
144
172
BUILD_TYPE : ' Debug'
145
173
steps :
146
174
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -152,10 +180,6 @@ jobs:
152
180
sudo -E ./ci/setup_cmake.sh
153
181
sudo -E ./ci/setup_googletest.sh
154
182
- name : Build abseil, protobuf, and grpc with ci scripts
155
- env :
156
- ABSEIL_CPP_VERSION : ' 20220623.2'
157
- PROTOBUF_VERSION : ' 21.12'
158
- GRPC_VERSION : ' v1.49.2'
159
183
run : |
160
184
sudo -E ./ci/install_abseil.sh
161
185
sudo -E ./ci/install_protobuf.sh
@@ -170,10 +194,12 @@ jobs:
170
194
run : ./ci/do_ci.sh cmake.install.test
171
195
172
196
ubuntu_2404_conan_stable :
173
- name : Ubuntu 24.04 conan stable cxx17 (static libs - shared libs - opentracing shim)
197
+ name : Ubuntu 24.04 conan stable versions cxx17 (static libs - shared libs - opentracing shim)
174
198
runs-on : ubuntu-24.04
175
199
env :
176
200
INSTALL_TEST_DIR : ' /home/runner/install_test'
201
+ # CMake 3.28 is apt package version for Ubuntu 24.04
202
+ CMAKE_VERSION : ' 3.28.3'
177
203
CXX_STANDARD : ' 17'
178
204
CMAKE_TOOLCHAIN_FILE : /home/runner/conan/build/Debug/generators/conan_toolchain.cmake
179
205
BUILD_TYPE : ' Debug'
@@ -189,7 +215,7 @@ jobs:
189
215
- name : Install or build all dependencies with Conan
190
216
run : |
191
217
sudo -E ./ci/setup_cmake.sh
192
- conan install install/conan/conanfile_stable.txt --build=missing -of /home/runner/conan -s build_type=Debug
218
+ conan install install/conan/conanfile_stable.txt --build=missing -of /home/runner/conan -s build_type=${BUILD_TYPE} -s compiler.cppstd=${CXX_STANDARD}
193
219
- name : Run Tests (static libs)
194
220
env :
195
221
BUILD_SHARED_LIBS : ' OFF'
@@ -206,10 +232,12 @@ jobs:
206
232
run : ./ci/do_ci.sh cmake.opentracing_shim.install.test
207
233
208
234
ubuntu_2404_conan_latest :
209
- name : Ubuntu 24.04 conan latest cxx17 (static libs)
235
+ name : Ubuntu 24.04 conan latest versions cxx17 (static libs)
210
236
runs-on : ubuntu-24.04
211
237
env :
212
238
INSTALL_TEST_DIR : ' /home/runner/install_test'
239
+ # Set to the latest version of cmake 3.x
240
+ CMAKE_VERSION : ' 3.31.6'
213
241
CXX_STANDARD : ' 17'
214
242
CMAKE_TOOLCHAIN_FILE : /home/runner/conan/build/Debug/generators/conan_toolchain.cmake
215
243
BUILD_TYPE : ' Debug'
@@ -225,7 +253,7 @@ jobs:
225
253
- name : Install or build all dependencies with Conan
226
254
run : |
227
255
sudo -E ./ci/setup_cmake.sh
228
- conan install install/conan/conanfile_latest.txt --build=missing -of /home/runner/conan -s build_type=Debug
256
+ conan install install/conan/conanfile_latest.txt --build=missing -of /home/runner/conan -s build_type=${BUILD_TYPE} -s compiler.cppstd=${CXX_STANDARD}
229
257
- name : Run Tests (static libs)
230
258
env :
231
259
BUILD_SHARED_LIBS : ' OFF'
@@ -236,10 +264,11 @@ jobs:
236
264
./ci/verify_packages.sh
237
265
238
266
macos_14_conan_stable :
239
- name : macOS 14 conan stable cxx17 (static libs)
267
+ name : macOS 14 conan stable versions cxx17 (static libs)
240
268
runs-on : macos-14
241
269
env :
242
270
INSTALL_TEST_DIR : ' /Users/runner/install_test'
271
+ CMAKE_VERSION : ' 3.28.3'
243
272
CXX_STANDARD : ' 17'
244
273
CMAKE_TOOLCHAIN_FILE : ' /Users/runner/conan/build/Debug/generators/conan_toolchain.cmake'
245
274
BUILD_TYPE : ' Debug'
@@ -250,19 +279,22 @@ jobs:
250
279
- name : Install Conan and tools
251
280
run : |
252
281
brew install conan autoconf automake libtool coreutils
253
- sudo -E ./ci/setup_cmake_macos.sh
282
+ ./ci/setup_cmake_macos.sh
254
283
conan profile detect --force
255
284
- name : Install or build all dependencies with Conan
256
- run : conan install install/conan/conanfile_stable.txt --build=missing -of /Users/runner/conan -s build_type=Debug
285
+ run : conan install install/conan/conanfile_stable.txt --build=missing -of /Users/runner/conan -s build_type=${BUILD_TYPE} -s compiler.cppstd=${CXX_STANDARD}
257
286
- name : Run Tests (static libs)
258
287
env :
259
288
BUILD_SHARED_LIBS : ' OFF'
260
289
run : ./ci/do_ci.sh cmake.install.test
261
290
262
291
macos_14_brew_packages :
263
- name : macOS 14 brew packages cxx17 (static libs)
292
+ name : macOS 14 brew latest versions cxx17 (static libs)
264
293
runs-on : macos-14
265
294
env :
295
+ INSTALL_TEST_DIR : ' /Users/runner/install_test'
296
+ # Set to the latest version of cmake 3.x
297
+ CMAKE_VERSION : ' 3.31.6'
266
298
CXX_STANDARD : ' 17'
267
299
BUILD_TYPE : ' Debug'
268
300
steps :
@@ -271,7 +303,7 @@ jobs:
271
303
submodules : ' recursive'
272
304
- name : Install Dependencies with Homebrew
273
305
run : |
274
- sudo -E ./ci/setup_cmake_macos.sh
306
+ ./ci/setup_cmake_macos.sh
275
307
brew install coreutils
276
308
brew install googletest
277
309
brew install google-benchmark
0 commit comments