Skip to content
Closed
Changes from all commits
Commits
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
28 changes: 22 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,27 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-22.04
name: NGINX v${{ matrix.nginx_version }}

strategy:
matrix:
nginx_version: [1.18.0, 1.24.0, 1.26.3, 1.27.3, 1.28.0]

steps:
- uses: actions/checkout@v3

- name: Dependencies
env:
NGINX_VERSION: 1.18.0
run: |
sudo apt-get update -y
sudo apt-get install -y libssl-dev libcurl4-openssl-dev libhiredis-dev libmemcached-dev
sudo apt-get install -y libjansson-dev libcjose-dev apache2-dev pkg-config
cd /tmp
wget https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz
tar zxvf nginx-${NGINX_VERSION}.tar.gz
ln -s nginx-${NGINX_VERSION} nginx
cd /tmp/nginx && ./configure --with-debug
wget https://nginx.org/download/nginx-${{ matrix.nginx_version }}.tar.gz
tar zxvf nginx-${{ matrix.nginx_version }}.tar.gz
ln -s nginx-${{ matrix.nginx_version }} nginx
cd /tmp/nginx && ./configure --with-debug --with-compat
cd /tmp
git clone https://github.com/OpenIDC/liboauth2.git
cd liboauth2
Expand All @@ -36,5 +40,17 @@ jobs:
- name: Make
run: make

- name: Dist
# Add build/{include,lib} inside <distdir> folder (eg: ngx_openidc_module-4.0.0/) which is going to be uploaded
run: |
make distdir prefix=/build
make install prefix=/build DESTDIR=$(pwd)/'$(PACKAGE_NAME)-$(PACKAGE_VERSION)'

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: ngx_openidc_module-${{ matrix.nginx_version }}
path: ngx_openidc_module-*

- name: Distcheck
run: make distcheck DESTDIR="/tmp/ngx_openidc_module" DISTCHECK_CONFIGURE_FLAGS="--with-nginx=/tmp/nginx"