From 971d44107ea4ce1f5744696aaed474d3b93a2904 Mon Sep 17 00:00:00 2001 From: Shreyas Mahajan Date: Wed, 21 Jan 2026 18:40:36 +0530 Subject: [PATCH] ci: Test against latest LibreSSL Signed-off-by: Shreyas Mahajan Reviewed-by: Jakub Jelen --- .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b01bec2b..258a1054 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -301,6 +301,37 @@ fedora/openssl_3.x/x86_64/minimal: make test_memcheck - cat Testing/Temporary/MemoryChecker.*.log | wc -l | grep "^0$" +fedora/libressl/x86_64: + extends: .fedora + stage: test + image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$FEDORA_BUILD + variables: + LIBRESSL_VERSION: "4.2.1" + CMAKE_ADDITIONAL_OPTIONS: > + -DCMAKE_C_FLAGS="-I/opt/libressl/include" + -DOPENSSL_ROOT_DIR=/opt/libressl + -DOPENSSL_INCLUDE_DIR=/opt/libressl/include + -DOPENSSL_CRYPTO_LIBRARY=/opt/libressl/lib/libcrypto.so + -DOPENSSL_SSL_LIBRARY=/opt/libressl/lib/libssl.so + -DWITH_GSSAPI=OFF + -DWITH_FIDO2=OFF + before_script: + - *build + - dnf install -y perl-core autoconf automake libtool pkgconf-pkg-config + - curl -LO https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-${LIBRESSL_VERSION}.tar.gz + - tar xf libressl-${LIBRESSL_VERSION}.tar.gz + - cd libressl-${LIBRESSL_VERSION} + - ./configure --prefix=/opt/libressl + - make -j$(nproc) + - make install + - cd .. + script: + - export PKG_CONFIG_PATH=/opt/libressl/lib/pkgconfig + - export LD_LIBRARY_PATH=/opt/libressl/lib + - cmake $CMAKE_OPTIONS $CMAKE_ADDITIONAL_OPTIONS .. && + make -j$(nproc) && + ctest --output-on-failure + # The PKCS#11 support is turned off as it brings dozens of memory issues from # engine_pkcs11 or openssl itself fedora/valgrind/openssl: