print("Usage: {} <ref_name>".format(sys.argv[0]), file=sys.stderr)
sys.exit(1)
+#
+# this CI is used for both development and stable branches of HAProxy
+#
+# naming convention used, if branch name matches:
+#
+# "haproxy-" - stable branches
+# otherwise - development branch (i.e. "latest" ssl variants, "latest" github images)
+#
print("Generating matrix for branch '{}'.".format(ref_name))
# Ubuntu
if "haproxy-" in ref_name:
- os = "ubuntu-22.04"
+ os = "ubuntu-22.04" # stable branch
else:
- os = "ubuntu-latest"
+ os = "ubuntu-latest" # development branch
TARGET = "linux-glibc"
for CC in ["gcc", "clang"]:
# "BORINGSSL=yes",
]
- if "haproxy-" not in ref_name:
+ if "haproxy-" not in ref_name: # development branch
ssl_versions = ssl_versions + [
"OPENSSL_VERSION=latest",
"LIBRESSL_VERSION=latest",
# macOS
if "haproxy-" in ref_name:
- os = "macos-12"
+ os = "macos-12" # stable branch
else:
- os = "macos-latest"
+ os = "macos-latest" # development branch
TARGET = "osx"
for CC in ["clang"]: