File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Alpine build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+
9
+ jobs :
10
+ build-module :
11
+ runs-on : ubuntu-latest
12
+ container : alpine
13
+ steps :
14
+ - name : Checkout repository
15
+ uses : actions/checkout@v4
16
+ - name : Install dependencies
17
+ run : |
18
+ apk add build-base openssl-dev zlib-dev pcre2-dev \
19
+ cmake git grpc-dev protobuf-dev \
20
+ python3
21
+ - name : Checkout nginx
22
+ uses : actions/checkout@v4
23
+ with :
24
+ repository : nginx/nginx
25
+ path : nginx
26
+ - name : Build nginx
27
+ working-directory : nginx
28
+ run : |
29
+ auto/configure --with-compat --with-http_ssl_module \
30
+ --with-http_v2_module --with-http_v3_module
31
+ make -j $(nproc)
32
+ - name : Build module
33
+ working-directory : nginx
34
+ run : |
35
+ NGX_OTEL_CMAKE_OPTS="-D NGX_OTEL_GRPC=package" \
36
+ auto/configure --with-compat --add-dynamic-module=..
37
+ make -j $(nproc) modules
38
+ - name : Install test dependencies
39
+ run : |
40
+ python -m venv tests-venv
41
+ tests-venv/bin/pip install -r tests/requirements.txt
42
+ - name : Run tests
43
+ run : |
44
+ tests-venv/bin/pytest tests --maxfail=10 --nginx=nginx/objs/nginx \
45
+ --module=nginx/objs/ngx_otel_module.so
You can’t perform that action at this time.
0 commit comments