mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-03 12:03:02 +00:00
CI: github: split ssl lib selection based on git branch
when *SSL_VERSION="latest" behaviour was introduced, it seems to be fine for development branches, but too intrusive for stable branches. let us limit "latest" semantic only for development builds, if branch name contains "haproxy-" it is supposed to be stable branch, no latest openssl should be taken [wla: must be backported as far as 2.6] Signed-off-by: William Lallemand <wlallemand@haproxy.org>
This commit is contained in:
parent
4b167006fd
commit
4a04cd35ae
10
.github/matrix.py
vendored
10
.github/matrix.py
vendored
@ -15,12 +15,12 @@ import re
|
||||
from os import environ
|
||||
|
||||
if len(sys.argv) == 2:
|
||||
build_type = sys.argv[1]
|
||||
ref_name = sys.argv[1]
|
||||
else:
|
||||
print("Usage: {} <build_type>".format(sys.argv[0]), file=sys.stderr)
|
||||
print("Usage: {} <ref_name>".format(sys.argv[0]), file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
print("Generating matrix for type '{}'.".format(build_type))
|
||||
print("Generating matrix for type '{}'.".format(ref_name))
|
||||
|
||||
|
||||
def clean_os(os):
|
||||
@ -129,11 +129,9 @@ for CC in ["gcc", "clang"]:
|
||||
"stock",
|
||||
"OPENSSL_VERSION=1.0.2u",
|
||||
"OPENSSL_VERSION=1.1.1s",
|
||||
"OPENSSL_VERSION=latest",
|
||||
"LIBRESSL_VERSION=latest",
|
||||
"QUICTLS=yes",
|
||||
# "BORINGSSL=yes",
|
||||
]:
|
||||
] + (["OPENSSL_VERSION=latest", "LIBRESSL_VERSION=latest"] if "haproxy-" not in ref_name else []):
|
||||
flags = ["USE_OPENSSL=1"]
|
||||
if ssl == "BORINGSSL=yes" or ssl == "QUICTLS=yes" or "LIBRESSL" in ssl:
|
||||
flags.append("USE_QUIC=1")
|
||||
|
2
.github/workflows/vtest.yml
vendored
2
.github/workflows/vtest.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Generate Build Matrix
|
||||
id: set-matrix
|
||||
run: python3 .github/matrix.py "${{ github.event_name }}"
|
||||
run: python3 .github/matrix.py "${{ github.ref_name }}"
|
||||
|
||||
# The Test job actually runs the tests.
|
||||
Test:
|
||||
|
Loading…
Reference in New Issue
Block a user