[njs] CI: added 32bit test in check-pr job.

noreply at nginx.com noreply at nginx.com
Fri Oct 11 01:28:02 UTC 2024


details:   https://github.com/nginx/njs/commit/78a34bf74fea40e14c25bfc09f86cc96a81e5c5c
branches:  master
commit:    78a34bf74fea40e14c25bfc09f86cc96a81e5c5c
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Thu, 10 Oct 2024 18:03:38 -0700
description:
CI: added 32bit test in check-pr job.


---
 .github/workflows/check-pr.yml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/.github/workflows/check-pr.yml b/.github/workflows/check-pr.yml
index 0160c1fd..6440e8ce 100644
--- a/.github/workflows/check-pr.yml
+++ b/.github/workflows/check-pr.yml
@@ -28,6 +28,12 @@ jobs:
           libgd-dev libxml2-dev libedit-dev libperl-dev libtest-harness-perl \
           libgd-perl libgeoip-dev expect
 
+      - name: Install x86 build dependencies
+        run: |
+          sudo dpkg --add-architecture i386
+          sudo apt-get update
+          sudo apt-get install -y gcc-multilib libc6:i386 libpcre2-dev:i386 zlib1g-dev:i386
+
       - name: Check out nginx
         run: |
           git clone https://github.com/nginx/nginx nginx-source
@@ -55,6 +61,19 @@ jobs:
           $MAKE_UTILITY test
           $MAKE_UTILITY clean
 
+      - name: Configure and make njs, 32-bit
+        run: |
+          ./configure \
+                    --cc-opt="$CC_OPT -m32" \
+                    --ld-opt="$LD_OPT" \
+          || cat build/autoconf.err
+          $MAKE_UTILITY -j$(nproc)
+
+      - name: Test njs, 32-bit
+        run: |
+          $MAKE_UTILITY test
+          $MAKE_UTILITY clean
+
       - name: Configure and make njs with quickjs
         run: |
           ./configure \


More information about the nginx-devel mailing list