Skip to content
Open
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
17 changes: 14 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,30 @@ jobs:
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
cd /tmp/nginx && ./configure --with-debug --with-compat

- name: Configure
run: |
./autogen.sh
./configure --with-nginx=/tmp/nginx --with-jq=/usr

- name: Make
run: make
run: make prefix=/build

- name: Test
run: make check || (cat test-suite.log && exit -1)

- name: Dist
# Add build/{include,lib} inside <distdir> folder (eg: liboauth2-2.2.0dev/) 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: liboauth2-${{ matrix.nginx_version }}
path: liboauth2-*

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