Skip to content

Commit 6f86f0f

Browse files
dbarkerowent
authored andcommitted
Test building opentelemetry-cpp as shared libraries against grpc and protobuf as shared libraries
1 parent 688accb commit 6f86f0f

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

.github/workflows/cmake_install.yml

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ jobs:
271271
run: ./ci/do_ci.sh cmake.opentracing_shim.install.test
272272

273273
ubuntu_2404_conan_latest:
274-
name: Ubuntu 24.04 conan latest versions cxx17 (static libs)
274+
name: Ubuntu 24.04 conan latest versions cxx17 (static libs - shared libs)
275275
runs-on: ubuntu-24.04
276276
env:
277277
INSTALL_TEST_DIR: '/home/runner/install_test'
@@ -307,6 +307,44 @@ jobs:
307307
run: |
308308
export PKG_CONFIG_PATH=$INSTALL_TEST_DIR/lib/pkgconfig:$PKG_CONFIG_PATH
309309
./ci/verify_packages.sh
310+
- name: Run Tests (shared libs)
311+
env:
312+
BUILD_SHARED_LIBS: 'ON'
313+
run: ./ci/do_ci.sh cmake.install.test
314+
315+
ubuntu_2404_conan_latest_shared_deps:
316+
name: Ubuntu 24.04 conan latest w/shared protobuf and grpc (shared libs)
317+
runs-on: ubuntu-24.04
318+
env:
319+
INSTALL_TEST_DIR: '/home/runner/install_test'
320+
# Set to the latest version of cmake 3.x
321+
CMAKE_VERSION: '3.31.6'
322+
CXX_STANDARD: '17'
323+
CMAKE_TOOLCHAIN_FILE: /home/runner/conan/build/Debug/generators/conan_toolchain.cmake
324+
BUILD_TYPE: 'Debug'
325+
steps:
326+
- name: Harden the runner (Audit all outbound calls)
327+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
328+
with:
329+
egress-policy: audit
330+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
331+
with:
332+
submodules: 'recursive'
333+
- name: Install Conan
334+
run: |
335+
python3 -m pip install pip==25.0.1
336+
pip install "conan==2.15.1"
337+
conan profile detect --force
338+
- name: Install or build all dependencies with Conan
339+
run: |
340+
sudo -E ./ci/setup_cmake.sh
341+
conan install install/conan/conanfile_latest.txt --build=missing -of /home/runner/conan -s build_type=${BUILD_TYPE} -s compiler.cppstd=${CXX_STANDARD} -o protobuf/*:shared=True -o grpc/*:shared=True
342+
- name: Run Tests (shared libs)
343+
env:
344+
BUILD_SHARED_LIBS: 'ON'
345+
run: |
346+
source /home/runner/conan/build/Debug/generators/conanrun.sh
347+
./ci/do_ci.sh cmake.install.test
310348
311349
macos_14_conan_stable:
312350
name: macOS 14 conan stable versions cxx17 (static libs)

0 commit comments

Comments
 (0)