]> git.kaiwu.me - haproxy.git/commitdiff
CI: github: test WolfSSL with and without debugging
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 18 Nov 2026 09:53:37 +0000 (09:53 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 18 Nov 2026 09:55:17 +0000 (10:55 +0100)
Add a debug matrix axis to run WolfSSL 5.7.0 with WOLFSSL_DEBUG=0 and
WOLFSSL_DEBUG=1 in parallel. Include the debug setting in each job name
and disable fail-fast so one variant cannot cancel the other.

Keep AddressSanitizer enabled for both variants and leave the HAProxy
build flags unchanged.

.github/workflows/wolfssl.yml

index fe8d2e08d1f44287c5be14363fd8dfe3a095fd82..3d4c5eb2c635c5d082a361221bdd0445b5de2948 100644 (file)
@@ -10,10 +10,13 @@ permissions:
 
 jobs:
   test:
-    name: WolfSSL ${{ matrix.wolfssl }}
+    name: WolfSSL ${{ matrix.wolfssl }} (debug=${{ matrix.debug }})
     strategy:
+      fail-fast: false
       matrix:
         wolfssl: [5.7.0]
+        # Cover both normal builds and WolfSSL's --enable-debug configuration.
+        debug: [0, 1]
     runs-on: ubuntu-latest
     if: ${{ github.repository_owner == 'haproxy' || github.event_name == 'workflow_dispatch' }}
     steps:
@@ -23,7 +26,7 @@ jobs:
           sudo apt-get update -o Acquire::Languages=none -o Acquire::Translation=none
           sudo apt-get --no-install-recommends -y install socat gdb jose
       - name: Install WolfSSL
-        run: env WOLFSSL_VERSION=${{ matrix.wolfssl }} WOLFSSL_DEBUG=1 CFLAGS="-fsanitize=address -g" scripts/build-ssl.sh
+        run: env WOLFSSL_VERSION=${{ matrix.wolfssl }} WOLFSSL_DEBUG=${{ matrix.debug }} CFLAGS="-fsanitize=address -g" scripts/build-ssl.sh
       - name: Compile HAProxy
         run: |
           make -j$(nproc) ERR=1 CC=gcc TARGET=linux-glibc \