Skip to content

Commit 25e11bf

Browse files
committed
Add CI workflow for Alpine Linux.
The workflow uses Nginx build system with OS provided gRPC.
1 parent 72d8eed commit 25e11bf

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/alpine.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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

0 commit comments

Comments
 (0)