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.
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:
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 \