Skip to content

[CI] Add CI for instrumentation/boost_log #1

[CI] Add CI for instrumentation/boost_log

[CI] Add CI for instrumentation/boost_log #1

Workflow file for this run

name: boost_log
on:
push:
branches:
- '*'
path:
- 'instrumentation/boost_log/**'
- '.github/workflows/boost_log.yml'
pull_request:
branches: [main]
paths:
- 'instrumentation/boost_log/**'
- '.github/workflows/boost_log.yml'
jobs:
cmake_linux:
name: CMake Linux
runs-on: ubuntu-latest
steps:
- name: checkout opentelemetry-cpp-contrib
uses: actions/checkout@v3
with:
path: opentelemetry-cpp-contrib
submodules: "recursive"
- name: checkout opentelemetry-cpp
uses: actions/checkout@v3
with:
repository: "open-telemetry/opentelemetry-cpp"
ref: "v1.14.2"
path: "opentelemetry-cpp"
submodules: "recursive"
- name: setup dependencies
run: |
sudo apt update -y
sudo apt install -y --no-install-recommends --no-install-suggests \
build-essential \
cmake \
ninja-build \
libssl-dev \
libcurl4-openssl-dev \
libprotobuf-dev \
protobuf-compiler \
libgmock-dev \
libgtest-dev \
libbenchmark-dev
- name: run tests
run: |
mkdir -p "${GITHUB_WORKSPACE}/opentelemetry-cpp/build"
cd "${GITHUB_WORKSPACE}/opentelemetry-cpp/build"
cmake .. -G Ninja -D OPENTELEMETRY_EXTERNAL_COMPONENT_PATH=${GITHUB_WORKSPACE}/opentelemetry-cpp-contrib/instrumentation/boost_log
cmake --build . -j$(nproc)
ctest -j1 --output-on-failure