Skip to content

Commit a470406

Browse files
committed
Build module.
1 parent 6e1e61d commit a470406

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/alpine.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ jobs:
1313
uses: actions/checkout@v4
1414
- name: Install dependencies
1515
run: |
16-
apk add build-base openssl-dev zlib-dev pcre2-dev
16+
apk add build-base openssl-dev zlib-dev pcre2-dev \
17+
cmake git grpc-dev protobuf-dev
1718
- name: Checkout nginx
1819
uses: actions/checkout@v4
1920
with:
@@ -25,3 +26,17 @@ jobs:
2526
auto/configure --with-compat --with-debug --with-http_ssl_module \
2627
--with-http_v2_module --with-http_v3_module
2728
make -j $(nproc)
29+
- name: Build module
30+
working-directory: nginx
31+
run: |
32+
NGX_OTEL_CMAKE_OPTS="-D NGX_OTEL_GRPC=package" \
33+
auto/configure --with-compat --add-dynamic-module=..
34+
make -j $(nproc) modules
35+
- name: Install test dependencies
36+
run: |
37+
python -m venv tests-venv
38+
tests-venv/bin/pip install -r tests/requirements.txt
39+
- name: Run tests
40+
run: |
41+
tests-venv/bin/pytest tests --maxfail=10 --nginx=nginx/objs/nginx \
42+
--module=nginx/objs/ngx_otel_module.so

0 commit comments

Comments
 (0)