-
Notifications
You must be signed in to change notification settings - Fork 144
48 lines (47 loc) · 1.59 KB
/
geneva_metrics.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
name: Geneva Metrics CI
on:
push:
branches: "*"
paths:
- "exporters/geneva/**"
- ".github/workflows/geneva_metrics.yml"
pull_request:
branches: [main]
paths:
- "exporters/geneva/**"
- ".github/workflows/geneva_metrics.yml"
jobs:
cmake_linux:
name: CMake on Linux
runs-on: ubuntu-latest
steps:
- name: checkout otel contrib geneva metrics
uses: actions/checkout@v3
with:
path: "otel_cpp_contrib"
- name: checkout otel cpp
uses: actions/checkout@v3
with:
repository: "open-telemetry/opentelemetry-cpp"
ref: "v1.15.0"
path: "otel_cpp"
submodules: "recursive"
- name: setup
run: |
sudo apt update -y
sudo apt install -y --no-install-recommends --no-install-suggests build-essential\
ca-certificates wget git valgrind lcov
- name: run tests
run: |
sudo $GITHUB_WORKSPACE/otel_cpp/ci/setup_googletest.sh
mkdir -p "$GITHUB_WORKSPACE/otel_cpp/build"
cd "$GITHUB_WORKSPACE/otel_cpp/build"
cmake .. -DOPENTELEMETRY_INSTALL=ON
cmake --build . -j$(nproc)
cmake --install . --prefix "$HOME/prebuilt-otel"
mkdir -p "$GITHUB_WORKSPACE/otel_cpp_contrib/exporters/geneva/build"
cd "$GITHUB_WORKSPACE/otel_cpp_contrib/exporters/geneva/build"
cmake .. "-DCMAKE_PREFIX_PATH=$HOME/prebuilt-otel" \
-DBUILD_TESTING=ON -DWITH_EXAMPLES=ON
cmake --build . -j$(nproc)
ctest