Skip to content

Commit a5197cb

Browse files
committed
Add run-nginx-zlib-ng job and example config for zlib-ng patch testing
1 parent ed43da1 commit a5197cb

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/workflows/go.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,33 @@ jobs:
119119
-customssl https://boringssl.googlesource.com/boringssl \
120120
-customsslname boringssl
121121
122+
run-nginx-zlib-ng:
123+
runs-on: ubuntu-latest
124+
env:
125+
GOCACHE: ${{ github.workspace }}/.cache
126+
steps:
127+
- uses: actions/checkout@v6
128+
- name: Set up Go
129+
uses: actions/setup-go@v6
130+
with:
131+
go-version: 1.25.4
132+
- name: Download nginx zlib-ng patch
133+
run: |
134+
set -euxo pipefail
135+
curl -L https://patch-diff.githubusercontent.com/raw/nginx/nginx/pull/644.patch -o /tmp/nginx-pr-644.patch
136+
- name: Run Nginx with zlib-ng compat
137+
run: |
138+
set -euxo pipefail
139+
make
140+
./nginx-build \
141+
-c ./config/configure.zlibng.example \
142+
-m ./config/modules.json.example \
143+
-d work \
144+
-clear \
145+
-pcre \
146+
-zlib-ng \
147+
-patch /tmp/nginx-pr-644.patch
148+
122149
run-nginx-oqs-provider:
123150
runs-on: ubuntu-latest
124151
steps:

config/configure.zlibng.example

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
./configure \
4+
--sbin-path=/usr/sbin/nginx \
5+
--conf-path=/etc/nginx/nginx.conf \
6+
--with-zlib-conf-opt="--zlib-compat" \

0 commit comments

Comments
 (0)