mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-27 23:22:09 +00:00
76f56a39be
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/
18 lines
534 B
Bash
Executable File
18 lines
534 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eux
|
|
|
|
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
|
|
|
|
#
|
|
# 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
|