Skip to content

Commit e586b1a

Browse files
dbarkerowent
authored andcommitted
Test building opentelemetry-cpp as shared libraries against grpc and protobuf as shared libraries
1 parent 8486500 commit e586b1a

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
@@ -270,7 +270,7 @@ jobs:
270270
run: ./ci/do_ci.sh cmake.opentracing_shim.install.test
271271

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

0 commit comments

Comments
 (0)