forked from open-telemetry/opentelemetry-cpp-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
111 lines (105 loc) · 3.04 KB
/
httpd.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: httpd instrumentation CI
on:
push:
branches: "*"
paths:
- 'instrumentation/httpd/**'
- '.github/workflows/httpd.yml'
pull_request:
branches: [ main ]
paths:
- 'instrumentation/httpd/**'
- '.github/workflows/httpd.yml'
jobs:
build:
name: Build module
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup buildtools
run: |
sudo ./instrumentation/httpd/setup-buildtools.sh
sudo ./instrumentation/httpd/setup-environment.sh
- name: Compile
run: |
cd instrumentation/httpd && ./build.sh
cp bazel-out/k8-opt/bin/otel.so /tmp/mod-otel.so
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}_mod-otel.so
path: /tmp/mod-otel.so
build_cmake:
name: Build module with CMake
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup buildtools
run: |
sudo ./instrumentation/httpd/setup-buildtools.sh
sudo ./instrumentation/httpd/setup-environment.sh
- name: Compile prerequisites
run: |
cd instrumentation/httpd
sudo ./setup-cmake.sh
- name: Compile
run: |
cd instrumentation/httpd
mkdir -p build
cd build
cmake ..
make -j2
clang_format:
name: Check code formatting
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup formatting tool (clang)
run: |
sudo ./instrumentation/httpd/tools/setup-tools.sh code
- name: Check formatting
run: ./instrumentation/httpd/tools/format-code.sh
build_format:
name: Check build formatting
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup formatting tool (buildifier)
run: |
sudo ./instrumentation/httpd/tools/setup-tools.sh buildifier
- name: Check formatting
run: ./instrumentation/httpd/tools/format-bazel.sh
e2e_tests:
name: Run end-to-end tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, ubuntu-20.04]
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup buildtools
run: |
sudo ./instrumentation/httpd/tests/setup-tools.sh
sudo ./instrumentation/httpd/setup-buildtools.sh
sudo ./instrumentation/httpd/setup-environment.sh
- name: Compile
run: cd instrumentation/httpd && ./build.sh
- name: Run tests
run: |
cd instrumentation/httpd && ./create-otel-load.sh
sudo ./httpd_install_otel.sh
cd tests && sudo ./run-all.sh