Hello,

another exotic (but hopefully useful) CI job.

Ilya
From d6185a3e972c0e04d86e8b7ddc075a08d115031a Mon Sep 17 00:00:00 2001
From: Ilya Shipitsin <chipits...@gmail.com>
Date: Fri, 29 Jul 2022 21:42:12 +0500
Subject: [PATCH 1/2] BUILD: SSL: allow to pass additional configure args to
 QUICTLS

this allows to pass QUICTLS_EXTRA_ARGS to QUICTLS builds. if no
additional arg is passed, behaviour is kept unchanged
---
 scripts/build-ssl.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/scripts/build-ssl.sh b/scripts/build-ssl.sh
index d143cec55..8cd827edb 100755
--- a/scripts/build-ssl.sh
+++ b/scripts/build-ssl.sh
@@ -134,11 +134,10 @@ fi
 
 if [ ! -z ${QUICTLS+x} ]; then
         (
-
         download_quictls
         cd download-cache/quictls
 
-        ./config shared --prefix="${HOME}/opt" --openssldir="${HOME}/opt" --libdir=lib -DPURIFY
+	./config shared  ${QUICTLS_EXTRA_ARGS:-} --prefix="${HOME}/opt" --openssldir="${HOME}/opt" --libdir=lib -DPURIFY
         make -j$(nproc) build_sw
         make install_sw
 
-- 
2.37.1

From 1dc093064bb69dba78a029083b4884f1bbe78eb8 Mon Sep 17 00:00:00 2001
From: Ilya Shipitsin <chipits...@gmail.com>
Date: Fri, 29 Jul 2022 21:49:22 +0500
Subject: [PATCH 2/2] CI: enable weekly "m32" builds on x86_64

this is build only workflow, catches potential "size_t" mismatches
---
 .github/workflows/m32.yml | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 .github/workflows/m32.yml

diff --git a/.github/workflows/m32.yml b/.github/workflows/m32.yml
new file mode 100644
index 000000000..09ecd24d3
--- /dev/null
+++ b/.github/workflows/m32.yml
@@ -0,0 +1,34 @@
+#
+# special purpose CI: test build on x86_64 with "m32" flag enabled
+# let us run those builds weekly
+#
+# some details might be found at GH: https://github.com/haproxy/haproxy/issues/1760
+#
+
+name: m32
+
+on:
+  schedule:
+    - cron: "0 0 * * 5"
+
+
+permissions:
+  contents: read
+
+jobs:
+  test:
+    runs-on: ubuntu-latest
+    container:
+      image: fedora:rawhide
+    steps:
+    - uses: actions/checkout@v3
+    - name: Install dependencies
+      run: |
+        dnf -y groupinstall "Development Tools"
+        dnf -y install 'perl(FindBin)' 'perl(File::Compare)' perl-IPC-Cmd 'perl(File::Copy)' glibc-devel.i686
+    - name: Compile QUICTLSroxy
+      run: |
+        QUICTLS=yes QUICTLS_EXTRA_ARGS="-m32 linux-generic32" ./scripts/build-ssl.sh
+    - name: Compile HAProxy
+      run: |
+        make CC=gcc ERR=1 TARGET=linux-glibc USE_OPENSSL=1 USE_QUIC=1 DEBUG_CFLAGS="-m32" LDFLAGS="-m32" SSL_LIB=${HOME}/opt/lib SSL_INC=${HOME}/opt/include
-- 
2.37.1

Reply via email to