1919 CMAKE_VERSION : ' 3.31.6'
2020 # cxx17 is the default for windows-2022
2121 CXX_STANDARD : ' 17'
22+ CMAKE_ARGS : " -DWITH_STL=CXX17"
2223 steps :
2324 - name : Harden the runner (Audit all outbound calls)
2425 uses : step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
4546 CMAKE_VERSION : ' 3.15.0'
4647 # cxx14 is the default for windows-2019
4748 CXX_STANDARD : ' 14'
49+ CMAKE_ARGS : " -DWITH_GSL=ON"
4850 steps :
4951 - name : Harden the runner (Audit all outbound calls)
5052 uses : step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
@@ -80,16 +82,14 @@ jobs:
8082 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8183 with :
8284 submodules : ' recursive'
83- - name : Install libcurl, zlib, libbenchmark, nlohmann-json with apt
85+ - name : Setup CI Environment
8486 run : |
8587 sudo -E ./ci/setup_ci_environment.sh
8688 sudo -E ./ci/setup_cmake.sh
87- sudo -E ./ci/setup_googletest.sh
88- sudo -E apt-get install -y libcurl4-openssl-dev zlib1g-dev libbenchmark-dev nlohmann-json3-dev
89- - name : Install abseil, protobuf, and grpc with apt
89+ - name : Install Dependencies
9090 run : |
9191 sudo -E apt-get update
92- sudo -E apt-get install -y libabsl-dev libprotobuf-dev libgrpc++-dev protobuf-compiler protobuf-compiler-grpc
92+ sudo -E apt-get install -y libabsl-dev libcurl4-openssl-dev zlib1g-dev nlohmann-json3-dev libprotobuf-dev libgrpc++-dev protobuf-compiler protobuf-compiler-grpc
9393 - name : Run Tests (static libs)
9494 env :
9595 BUILD_SHARED_LIBS : ' OFF'
@@ -104,8 +104,8 @@ jobs:
104104 runs-on : ubuntu-24.04
105105 env :
106106 INSTALL_TEST_DIR : ' /home/runner/install_test'
107- # Set to the minimum cmake version
108- CMAKE_VERSION : ' 3.14.0 '
107+ # CMake 3.28 is apt package version for Ubuntu 24.04
108+ CMAKE_VERSION : ' 3.28.3 '
109109 # The default cxx standard for Ubuntu 24.04
110110 CXX_STANDARD : ' 17'
111111 BUILD_TYPE : ' Debug'
@@ -116,8 +116,9 @@ jobs:
116116 egress-policy : audit
117117 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
118118 with :
119+ # Don't checkout the submodules.
119120 submodules : false
120- - name : Install libcurl and zlib with apt
121+ - name : Setup CI Environment
121122 run : |
122123 sudo -E ./ci/setup_ci_environment.sh
123124 sudo -E ./ci/setup_cmake.sh
@@ -141,6 +142,7 @@ jobs:
141142 CMAKE_VERSION : ' 3.31.6'
142143 # Set to the latest cxx standard supported by opentelemetry-cpp
143144 CXX_STANDARD : ' 20'
145+ CMAKE_ARGS : " -DWITH_STL=CXX20"
144146 # Versions below set to the latest version available
145147 # The abseil and protobuf versions are taken from
146148 # the grpc submodules at the GRPC_VERSION tag
@@ -158,14 +160,14 @@ jobs:
158160 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
159161 with :
160162 submodules : ' recursive'
161- - name : Install gtest, libcurl, zlib, nlohmann-json with apt
163+ - name : Setup CI Environment
162164 run : |
163165 sudo -E ./ci/setup_ci_environment.sh
164166 sudo -E ./ci/setup_cmake.sh
165- sudo -E ./ci/setup_googletest.sh
166- - name : Build abseil, protobuf, and grpc with ci scripts
167+ - name : Install Dependencies
167168 run : |
168169 sudo -E ./ci/install_abseil.sh
170+ sudo -E ./ci/setup_googletest.sh
169171 sudo -E ./ci/install_protobuf.sh
170172 sudo -E ./ci/setup_grpc.sh -r $GRPC_VERSION -s $CXX_STANDARD -p protobuf -p abseil-cpp
171173 - name : Run Tests (static libs)
@@ -181,6 +183,7 @@ jobs:
181183 # CMake 3.22 is the apt package version for Ubuntu 22.04
182184 CMAKE_VERSION : ' 3.22.0'
183185 CXX_STANDARD : ' 17'
186+ CMAKE_ARGS : " -DWITH_STL=CXX17"
184187 # These are stable versions tested in the main ci workflow
185188 # and defaults in the devcontainer
186189 GOOGLETEST_VERSION : ' 1.14.0'
@@ -197,14 +200,14 @@ jobs:
197200 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
198201 with :
199202 submodules : ' recursive'
200- - name : Install gtest, libcurl, zlib, nlohmann-json with apt
203+ - name : Setup CI Environment
201204 run : |
202205 sudo -E ./ci/setup_ci_environment.sh
203206 sudo -E ./ci/setup_cmake.sh
204- sudo -E ./ci/setup_googletest.sh
205- - name : Build abseil, protobuf, and grpc with ci scripts
207+ - name : Install Dependencies
206208 run : |
207209 sudo -E ./ci/install_abseil.sh
210+ sudo -E ./ci/setup_googletest.sh
208211 sudo -E ./ci/install_protobuf.sh
209212 sudo -E ./ci/setup_grpc.sh -r $GRPC_VERSION -s $CXX_STANDARD -p protobuf -p abseil-cpp
210213 - name : Run Tests (static libs)
@@ -225,6 +228,7 @@ jobs:
225228 CMAKE_VERSION : ' 3.14.0'
226229 # cxx14 is the default for Ubuntu 22.04
227230 CXX_STANDARD : ' 14'
231+ CMAKE_ARGS : " -DWITH_GSL=ON"
228232 # This is the apt package version of googletest for Ubuntu 22.04
229233 GOOGLETEST_VERSION : ' 1.11.0'
230234 # These are minimum versions tested in the main ci workflow
@@ -241,14 +245,15 @@ jobs:
241245 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
242246 with :
243247 submodules : ' recursive'
244- - name : Install gtest, libcurl, zlib, nlohmann-json with apt
248+ - name : Setup CI Environment
245249 run : |
246250 sudo -E ./ci/setup_ci_environment.sh
247251 sudo -E ./ci/setup_cmake.sh
248- sudo -E ./ci/setup_googletest.sh
249- - name : Build abseil, protobuf, and grpc with ci scripts
252+ - name : Install Dependencies
250253 run : |
254+ sudo -E apt-get install -y libcurl4-openssl-dev zlib1g-dev nlohmann-json3-dev
251255 sudo -E ./ci/install_abseil.sh
256+ sudo -E ./ci/setup_googletest.sh
252257 sudo -E ./ci/install_protobuf.sh
253258 sudo -E ./ci/setup_grpc.sh -r $GRPC_VERSION -s $CXX_STANDARD -p protobuf -p abseil-cpp
254259 - name : Run Tests (static libs)
@@ -278,7 +283,7 @@ jobs:
278283
279284 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
280285 with :
281- submodules : ' recursive '
286+ submodules : false
282287 - name : Install Conan
283288 run : |
284289 python3 -m pip install pip==25.0.1
@@ -321,7 +326,7 @@ jobs:
321326
322327 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
323328 with :
324- submodules : ' recursive '
329+ submodules : false
325330 - name : Install Conan
326331 run : |
327332 python3 -m pip install pip==25.0.1
@@ -359,7 +364,7 @@ jobs:
359364
360365 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
361366 with :
362- submodules : ' recursive '
367+ submodules : false
363368 - name : Install Conan and tools
364369 run : |
365370 brew install conan autoconf automake libtool coreutils
@@ -389,7 +394,7 @@ jobs:
389394
390395 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
391396 with :
392- submodules : ' recursive '
397+ submodules : false
393398 - name : Install Dependencies with Homebrew
394399 run : |
395400 ./ci/setup_cmake_macos.sh
0 commit comments