]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: github: skip a ssl library version when latest is already in the list master
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 7 Jul 2025 17:38:18 +0000 (19:38 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 7 Jul 2025 17:46:07 +0000 (19:46 +0200)
Skip the job for "latest" libssl version, when this version is the same
as a one already in the list.

This avoid having 2 jobs for OpenSSL 3.5.1 since no new dev version are
available for now and 3.5.1 is already in the list.

.github/matrix.py

index 9b8c2d7d716cda5053cf3949df9311b46de8a1a6..8ef046392fb5e6027cff40795c7c4c625a6943fd 100755 (executable)
@@ -233,6 +233,7 @@ def main(ref_name):
 
         for ssl in ssl_versions:
             flags = ["USE_OPENSSL=1"]
+            skipdup=0
             if "WOLFSSL" in ssl:
                 flags.append("USE_OPENSSL_WOLFSSL=1")
             if "AWS_LC" in ssl:
@@ -242,8 +243,14 @@ def main(ref_name):
                 flags.append("SSL_INC=${HOME}/opt/include")
             if "LIBRESSL" in ssl and "latest" in ssl:
                 ssl = determine_latest_libressl(ssl)
+                skipdup=1
             if "OPENSSL" in ssl and "latest" in ssl:
                 ssl = determine_latest_openssl(ssl)
+                skipdup=1
+
+            # if "latest" equals a version already in the list
+            if ssl in ssl_versions and skipdup == 1:
+                continue
 
             openssl_supports_quic = False
             try: