Skip to content

Commit 0d7f90b

Browse files
committed
update cmake install action workflow to test specific cmake versions including the min version. update the conan stable file to test older versions of benchmark and prometheus-cpp
1 parent e9cabbb commit 0d7f90b

File tree

2 files changed

+39
-33
lines changed

2 files changed

+39
-33
lines changed

.github/workflows/cmake_install.yml

Lines changed: 37 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
branches: [ main ]
99

1010
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)
1313
runs-on: windows-2022
1414
env:
1515
CXX_STANDARD: '17'
@@ -26,10 +26,11 @@ jobs:
2626
- name: Run DLL Tests
2727
run: ./ci/do_ci.ps1 cmake.dll.install.test
2828

29-
windows_2019_vcpkg:
30-
name: Windows 2019 vcpkg cxx14 (static libs)
29+
windows_2019_vcpkg_submodule_min_cmake:
30+
name: Windows 2019 vcpkg submodule versions minimum cmake cxx14 (static libs)
3131
runs-on: windows-2019
3232
env:
33+
CMAKE_VERSION: '3.14.0'
3334
CXX_STANDARD: '14'
3435
steps:
3536
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -47,6 +48,7 @@ jobs:
4748
runs-on: ubuntu-24.04
4849
env:
4950
INSTALL_TEST_DIR: '/home/runner/install_test'
51+
CMAKE_VERSION: '3.28.3'
5052
CXX_STANDARD: '17'
5153
BUILD_TYPE: 'Debug'
5254
steps:
@@ -71,12 +73,16 @@ jobs:
7173
BUILD_SHARED_LIBS: 'ON'
7274
run: ./ci/do_ci.sh cmake.install.test
7375

74-
ubuntu_2404_script_build_grpc_1_71_0:
75-
name: Ubuntu 24.04 script grpc 1.71.0 cxx17 (static libs)
76+
ubuntu_2404_latest:
77+
name: Ubuntu 24.04 latest versions cxx20 (static libs)
7678
runs-on: ubuntu-24.04
7779
env:
7880
INSTALL_TEST_DIR: '/home/runner/install_test'
7981
CXX_STANDARD: '20'
82+
GOOGLETEST_VERSION: '1.16.0'
83+
ABSEIL_CPP_VERSION: '20240722.1'
84+
PROTOBUF_VERSION: '29.0'
85+
GRPC_VERSION: 'v1.71.0'
8086
BUILD_TYPE: 'Debug'
8187
steps:
8288
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -88,10 +94,6 @@ jobs:
8894
sudo -E ./ci/setup_cmake.sh
8995
sudo -E ./ci/setup_googletest.sh
9096
- 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'
9597
run: |
9698
sudo -E ./ci/install_abseil.sh
9799
sudo -E ./ci/install_protobuf.sh
@@ -101,12 +103,17 @@ jobs:
101103
BUILD_SHARED_LIBS: 'OFF'
102104
run: ./ci/do_ci.sh cmake.install.test
103105

104-
ubuntu_2204_script_build_grpc_1_55_0:
105-
name: Ubuntu 22.04 script grpc 1.55.0 cxx17 (static libs - shared libs)
106+
ubuntu_2204_stable:
107+
name: Ubuntu 22.04 stable versions cxx17 (static libs - shared libs)
106108
runs-on: ubuntu-22.04
107109
env:
108110
INSTALL_TEST_DIR: '/home/runner/install_test'
111+
CMAKE_VERSION: '3.22.0'
109112
CXX_STANDARD: '17'
113+
GOOGLETEST_VERSION: '1.14.0'
114+
ABSEIL_CPP_VERSION: '20230125.3'
115+
PROTOBUF_VERSION: '23.3'
116+
GRPC_VERSION: 'v1.55.0'
110117
BUILD_TYPE: 'Debug'
111118
steps:
112119
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -118,10 +125,6 @@ jobs:
118125
sudo -E ./ci/setup_cmake.sh
119126
sudo -E ./ci/setup_googletest.sh
120127
- 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'
125128
run: |
126129
sudo -E ./ci/install_abseil.sh
127130
sudo -E ./ci/install_protobuf.sh
@@ -135,12 +138,17 @@ jobs:
135138
BUILD_SHARED_LIBS: 'ON'
136139
run: ./ci/do_ci.sh cmake.install.test
137140

138-
ubuntu_2204_script_build_grpc_1_49_2:
139-
name: Ubuntu 22.04 script grpc 1.49.2 cxx14 (static libs - shared libs)
141+
ubuntu_2204_minimum:
142+
name: Ubuntu 22.04 minimum versions cxx14 (static libs - shared libs)
140143
runs-on: ubuntu-22.04
141144
env:
142145
INSTALL_TEST_DIR: '/home/runner/install_test'
146+
CMAKE_VERSION: '3.14.0'
147+
GOOGLETEST_VERSION: '1.11.0'
143148
CXX_STANDARD: '14'
149+
ABSEIL_CPP_VERSION: '20220623.2'
150+
PROTOBUF_VERSION: '21.12'
151+
GRPC_VERSION: 'v1.49.2'
144152
BUILD_TYPE: 'Debug'
145153
steps:
146154
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -152,10 +160,6 @@ jobs:
152160
sudo -E ./ci/setup_cmake.sh
153161
sudo -E ./ci/setup_googletest.sh
154162
- 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'
159163
run: |
160164
sudo -E ./ci/install_abseil.sh
161165
sudo -E ./ci/install_protobuf.sh
@@ -170,10 +174,11 @@ jobs:
170174
run: ./ci/do_ci.sh cmake.install.test
171175

172176
ubuntu_2404_conan_stable:
173-
name: Ubuntu 24.04 conan stable cxx17 (static libs - shared libs - opentracing shim)
177+
name: Ubuntu 24.04 conan stable versions cxx17 (static libs - shared libs - opentracing shim)
174178
runs-on: ubuntu-24.04
175179
env:
176180
INSTALL_TEST_DIR: '/home/runner/install_test'
181+
CMAKE_VERSION: '3.28.3'
177182
CXX_STANDARD: '17'
178183
CMAKE_TOOLCHAIN_FILE: /home/runner/conan/build/Debug/generators/conan_toolchain.cmake
179184
BUILD_TYPE: 'Debug'
@@ -189,7 +194,7 @@ jobs:
189194
- name: Install or build all dependencies with Conan
190195
run: |
191196
sudo -E ./ci/setup_cmake.sh
192-
conan install install/conan/conanfile_stable.txt --build=missing -of /home/runner/conan -s build_type=Debug
197+
conan install install/conan/conanfile_stable.txt --build=missing -of /home/runner/conan -s build_type=${BUILD_TYPE} -s compiler.cppstd=${CXX_STANDARD}
193198
- name: Run Tests (static libs)
194199
env:
195200
BUILD_SHARED_LIBS: 'OFF'
@@ -206,7 +211,7 @@ jobs:
206211
run: ./ci/do_ci.sh cmake.opentracing_shim.install.test
207212

208213
ubuntu_2404_conan_latest:
209-
name: Ubuntu 24.04 conan latest cxx17 (static libs)
214+
name: Ubuntu 24.04 conan latest versions cxx17 (static libs)
210215
runs-on: ubuntu-24.04
211216
env:
212217
INSTALL_TEST_DIR: '/home/runner/install_test'
@@ -225,7 +230,7 @@ jobs:
225230
- name: Install or build all dependencies with Conan
226231
run: |
227232
sudo -E ./ci/setup_cmake.sh
228-
conan install install/conan/conanfile_latest.txt --build=missing -of /home/runner/conan -s build_type=Debug
233+
conan install install/conan/conanfile_latest.txt --build=missing -of /home/runner/conan -s build_type=${BUILD_TYPE} -s compiler.cppstd=${CXX_STANDARD}
229234
- name: Run Tests (static libs)
230235
env:
231236
BUILD_SHARED_LIBS: 'OFF'
@@ -236,11 +241,12 @@ jobs:
236241
./ci/verify_packages.sh
237242
238243
macos_14_conan_stable:
239-
name: macOS 14 conan stable cxx17 (static libs)
244+
name: macOS 14 conan stable versions cxx17 (static libs)
240245
runs-on: macos-14
241246
env:
242247
INSTALL_TEST_DIR: '/Users/runner/install_test'
243248
CXX_STANDARD: '17'
249+
CMAKE_VERSION: '3.28.3'
244250
CMAKE_TOOLCHAIN_FILE: '/Users/runner/conan/build/Debug/generators/conan_toolchain.cmake'
245251
BUILD_TYPE: 'Debug'
246252
steps:
@@ -250,17 +256,17 @@ jobs:
250256
- name: Install Conan and tools
251257
run: |
252258
brew install conan autoconf automake libtool coreutils
253-
sudo -E ./ci/setup_cmake_macos.sh
259+
./ci/setup_cmake_macos.sh
254260
conan profile detect --force
255261
- 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
262+
run: conan install install/conan/conanfile_stable.txt --build=missing -of /Users/runner/conan -s build_type=${BUILD_TYPE} -s compiler.cppstd=${CXX_STANDARD}
257263
- name: Run Tests (static libs)
258264
env:
259265
BUILD_SHARED_LIBS: 'OFF'
260266
run: ./ci/do_ci.sh cmake.install.test
261267

262268
macos_14_brew_packages:
263-
name: macOS 14 brew packages cxx17 (static libs)
269+
name: macOS 14 brew latest versions cxx17 (static libs)
264270
runs-on: macos-14
265271
env:
266272
CXX_STANDARD: '17'
@@ -271,7 +277,7 @@ jobs:
271277
submodules: 'recursive'
272278
- name: Install Dependencies with Homebrew
273279
run: |
274-
sudo -E ./ci/setup_cmake_macos.sh
280+
./ci/setup_cmake_macos.sh
275281
brew install coreutils
276282
brew install googletest
277283
brew install google-benchmark

install/conan/conanfile_stable.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ abseil/20230125.3
88
protobuf/3.21.12
99
grpc/1.54.3
1010
nlohmann_json/3.10.5
11-
prometheus-cpp/1.3.0
11+
prometheus-cpp/1.2.4
1212
opentracing-cpp/1.6.0
1313

1414
[options]
@@ -29,7 +29,7 @@ opentracing-cpp/*:shared=True
2929

3030
[test_requires]
3131
gtest/1.14.0
32-
benchmark/1.9.1
32+
benchmark/1.8.3
3333

3434
[generators]
3535
CMakeToolchain

0 commit comments

Comments
 (0)