Skip to content

Commit ed03bd8

Browse files
committed
use a common add_external_project function to find or fetch third party dependencies
1 parent 76460cf commit ed03bd8

File tree

20 files changed

+555
-552
lines changed

20 files changed

+555
-552
lines changed

.github/workflows/cmake_install.yml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,12 @@ jobs:
8080
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8181
with:
8282
submodules: 'recursive'
83-
- name: Install libcurl, zlib, nlohmann-json with apt
83+
- name: Install libcurl, zlib, libbenchmark, nlohmann-json with apt
8484
run: |
8585
sudo -E ./ci/setup_ci_environment.sh
8686
sudo -E ./ci/setup_cmake.sh
8787
sudo -E ./ci/setup_googletest.sh
88+
sudo -E apt-get install -y libcurl4-openssl-dev zlib1g-dev libbenchmark-dev nlohmann-json3-dev
8889
- name: Install abseil, protobuf, and grpc with apt
8990
run: |
9091
sudo -E apt-get update
@@ -98,6 +99,39 @@ jobs:
9899
BUILD_SHARED_LIBS: 'ON'
99100
run: ./ci/do_ci.sh cmake.install.test
100101

102+
ubuntu_2404_all_fetch:
103+
name: Ubuntu 24.04 fetch all dependencies (static libs - shared libs - opentracing shim)
104+
runs-on: ubuntu-24.04
105+
env:
106+
INSTALL_TEST_DIR: '/home/runner/install_test'
107+
# Set to the minimum cmake version
108+
CMAKE_VERSION: '3.14.0'
109+
# The default cxx standard for Ubuntu 24.04
110+
CXX_STANDARD: '17'
111+
BUILD_TYPE: 'Debug'
112+
steps:
113+
- name: Harden the runner (Audit all outbound calls)
114+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
115+
with:
116+
egress-policy: audit
117+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
118+
with:
119+
submodules: false
120+
- name: Install libcurl and zlib with apt
121+
run: |
122+
sudo -E ./ci/setup_ci_environment.sh
123+
sudo -E ./ci/setup_cmake.sh
124+
- name: Run Tests (static libs)
125+
env:
126+
BUILD_SHARED_LIBS: 'OFF'
127+
run: ./ci/do_ci.sh cmake.install.test
128+
- name: Run Tests (shared libs)
129+
env:
130+
BUILD_SHARED_LIBS: 'ON'
131+
run: ./ci/do_ci.sh cmake.install.test
132+
- name: Run OpenTracing Shim Test
133+
run: ./ci/do_ci.sh cmake.opentracing_shim.install.test
134+
101135
ubuntu_2404_latest:
102136
name: Ubuntu 24.04 latest versions cxx20 (static libs)
103137
runs-on: ubuntu-24.04
@@ -270,7 +304,7 @@ jobs:
270304
run: ./ci/do_ci.sh cmake.opentracing_shim.install.test
271305

272306
ubuntu_2404_conan_latest:
273-
name: Ubuntu 24.04 conan latest versions cxx17 (static libs)
307+
name: Ubuntu 24.04 conan latest versions cxx17 (static libs - opentracing shim)
274308
runs-on: ubuntu-24.04
275309
env:
276310
INSTALL_TEST_DIR: '/home/runner/install_test'
@@ -305,6 +339,8 @@ jobs:
305339
run: |
306340
export PKG_CONFIG_PATH=$INSTALL_TEST_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
307341
./ci/verify_packages.sh
342+
- name: Run OpenTracing Shim Test
343+
run: ./ci/do_ci.sh cmake.opentracing_shim.install.test
308344

309345
macos_14_conan_stable:
310346
name: macOS 14 conan stable versions cxx17 (static libs)

0 commit comments

Comments
 (0)