]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CI: modernize macos matrix
authorIlya Shipitsin <chipitsine@gmail.com>
Fri, 19 Apr 2024 05:16:45 +0000 (07:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Apr 2024 15:37:24 +0000 (17:37 +0200)
let's stick to macos-13 for stable branches and macos-14 for development branches.
since macos-14 is available for Apple Silicon, some modifications are required
for VTest (should be ported to VTest later)

news: https://github.blog/changelog/2024-01-30-github-actions-macos-14-sonoma-is-now-available/

.github/matrix.py
scripts/build-vtest.sh

index 571eddf08db557d10d1cf9bb4dd0491d30f2afe0..9300d325b44e07bf9565a07634de07f2d86c35fd 100755 (executable)
@@ -231,9 +231,9 @@ def main(ref_name):
     # macOS
 
     if "haproxy-" in ref_name:
-        os = "macos-12"     # stable branch
+        os = "macos-13"     # stable branch
     else:
-        os = "macos-latest" # development branch
+        os = "macos-14"     # development branch
 
     TARGET = "osx"
     for CC in ["clang"]:
index 4db35d6ee926a9611fbfb465dd7b44af052207cc..f53d2e467e7fb291845eacfa1b1a6efb194bbd18 100755 (executable)
@@ -6,5 +6,12 @@ curl -fsSL https://github.com/vtest/VTest/archive/master.tar.gz -o VTest.tar.gz
 mkdir ../vtest
 tar xvf VTest.tar.gz -C ../vtest --strip-components=1
 # Special flags due to: https://github.com/vtest/VTest/issues/12
-make -C ../vtest FLAGS="-O2 -s -Wall"
 
+#
+# temporarily detect Apple Silicon (it's using /opt/homebrew instead of /usr/local)
+#
+if test -f /opt/homebrew/include/pcre2.h; then
+   make -C ../vtest FLAGS="-O2 -s -Wall" INCS="-Isrc -Ilib -I/usr/local/include -I/opt/homebrew/include -pthread"
+else
+   make -C ../vtest FLAGS="-O2 -s -Wall"
+fi