-
Notifications
You must be signed in to change notification settings - Fork 145
55 lines (51 loc) · 1.67 KB
/
fluentd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright The OpenTelemetry Authors
# SPDX-License-Identifier: Apache-2.0
name: Fluentd exporter CI
on:
push:
branches: "*"
paths:
- "exporters/fluentd/**"
- ".github/workflows/fluentd.yml"
pull_request:
branches: [main]
paths:
- "exporters/fluentd/**"
- ".github/workflows/fluentd.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.15.0"
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 \
libgmock-dev \
libgtest-dev \
libbenchmark-dev
- name: build and test
run: |
sudo $GITHUB_WORKSPACE/opentelemetry-cpp/ci/setup_googletest.sh
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/exporters/fluentd
cmake --build . -j$(nproc)
ctest -j1 --output-on-failure