Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
9337cef
build_module: add missing colon in INFO log messages for download cases
thresheek May 15, 2026
9328b4d
build_module: exit on git clone failure when fetching NGINX packaging…
thresheek May 15, 2026
be01606
build_module: exit on git checkout failure for OSS version and Plus r…
thresheek May 15, 2026
f3b2405
build_module: exit if NGINX version cannot be determined from packagi…
thresheek May 15, 2026
0749aba
build_module: suppress stderr from apk --version on non-Alpine systems
thresheek May 15, 2026
ccd347a
build_module: quote variables throughout to handle paths with spaces
thresheek May 15, 2026
4ed3b0a
build_module: add error handling for all cd invocations
thresheek May 15, 2026
1eb4b75
build_module: add early validation for arguments
thresheek May 15, 2026
61bf082
build_module: validate archive top-level directory to prevent path tr…
thresheek Jun 2, 2026
0999e18
build_module: replace try_n_times with wget_n_times and check the exi…
thresheek Jun 2, 2026
13d85d1
build_module: correct wget_n_times retry count
thresheek Jun 3, 2026
caa410b
build_module: use mktemp -d for unpredictable temporary build directory
thresheek Jun 3, 2026
e146fea
build_module: fix artifacts collection for debian-based distros
thresheek Jun 3, 2026
95176bb
build_module: replace non-POSIX echo invocations with printf
thresheek Jun 3, 2026
10f2bbb
build_module: exit on git clone failure for module source
thresheek Jun 3, 2026
3350e86
build_module: use /. to copy directory contents including dotfiles
thresheek Jun 4, 2026
344c036
CI: add build_module.sh test workflow
thresheek Jun 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .github/workflows/build-module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: build_module.sh CI

on:
pull_request:
push:
workflow_dispatch:

defaults:
run:
shell: sh -e {0}

jobs:
build-module:
name: build-module (${{ matrix.os.container }}, ${{ matrix.nginx.flavor }})
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
os:
- container: almalinux:9
pre_install: |
dnf install -y git
- container: ubuntu:26.04
pre_install: |
apt-get update
apt-get install -y --no-install-recommends git ca-certificates
- container: alpine:3.23
pre_install: |
apk add --no-cache git
printf "#!/bin/sh\\nSETFATTR=true /usr/bin/abuild -F \"\$@\"\\n" > /usr/local/bin/abuild
chmod +x /usr/local/bin/abuild
nginx:
- flavor: oss
build_args: ""
- flavor: plus
build_args: "-r 37.0"
container: ${{ matrix.os.container }}

steps:
- name: Install prerequisites
run: ${{ matrix.os.pre_install }}

- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
Comment thread
thresheek marked this conversation as resolved.

- name: Build echo-nginx-module (${{ matrix.nginx.flavor }})
run: |
sh build_module.sh -y -n echo ${{ matrix.nginx.build_args }} -V 0.64 \
https://github.com/openresty/echo-nginx-module/archive/v0.64.tar.gz

- name: List built packages
if: always()
run: find build-module-artifacts -type f | xargs ls -ld
Comment thread
thresheek marked this conversation as resolved.
Loading
Loading