From c93a68b893e0e93a1cb8252f3e579ad81c0206e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Droz?= Date: Mon, 15 Sep 2025 14:25:42 -0300 Subject: [PATCH 1/2] ci: upload artifacts --- .github/workflows/build.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 87dc88c..bf79dfc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,11 +51,23 @@ jobs: ./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 folder (eg: liboauth2-2.2.0dev/) which is going to be uploaded + # Also avoid default DESTDIR `/usr/local/lib` check from liboauth2.la + 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" - \ No newline at end of file From 4fcd6b39401b6282b15a9b35ddbf8544507032f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Droz?= Date: Mon, 15 Sep 2025 19:15:45 -0300 Subject: [PATCH 2/2] added --with-compat to avoid possible segfaults when nginx compile-time flags differ too much with runtime --- .github/workflows/build.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bf79dfc..5caecec 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,7 +43,7 @@ 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: | @@ -58,7 +58,6 @@ jobs: - name: Dist # Add build/{include,lib} inside folder (eg: liboauth2-2.2.0dev/) which is going to be uploaded - # Also avoid default DESTDIR `/usr/local/lib` check from liboauth2.la run: | make distdir prefix=/build make install prefix=/build DESTDIR=$(pwd)/'$(PACKAGE_NAME)-$(PACKAGE_VERSION)'