The official VTest2 repository frequently causes CI failures. Use the
haproxytech/VTest2 repository instead.
Point the shared VTest setup action and the FreeBSD workflow at the
haproxytech/VTest2 repository for both cache SHA lookups and builds.
Select the build source through VTEST_URL, leaving the script default
unchanged.
This could be backported together with the previous commit,
691e22fbbd ("SCRIPTS: vtest: allow overriding the Git repository URL").
id: vtest-sha
shell: sh
run: |
- echo "sha=$(git ls-remote https://code.vinyl-cache.org/vtest/VTest2 HEAD | cut -f1)" >> $GITHUB_OUTPUT
+ echo "sha=$(git ls-remote https://github.com/haproxytech/VTest2 HEAD | cut -f1)" >> $GITHUB_OUTPUT
- name: Restore VTest cache
id: cache-vtest
shell: sh
run: |
# Use the runtime workspace, not the host-side github.workspace path.
- DESTDIR="$GITHUB_WORKSPACE/vtest" scripts/build-vtest.sh
+ VTEST_URL=https://github.com/haproxytech/VTest2 DESTDIR="$GITHUB_WORKSPACE/vtest" scripts/build-vtest.sh
- name: Save VTest cache
if: ${{ steps.cache-vtest.outputs.cache-hit != 'true' }}
id: vtest-sha
shell: sh
run: |
- sha=$(git ls-remote https://code.vinyl-cache.org/vtest/VTest2 HEAD | cut -f1)
+ sha=$(git ls-remote https://github.com/haproxytech/VTest2 HEAD | cut -f1)
if [ -n "${sha}" ]; then
echo "sha=${sha}" >> "$GITHUB_OUTPUT"
fi
sysctl kern.corefile=/tmp/%N.%P.core
sysctl kern.sugid_coredump=1
if ! "${GITHUB_WORKSPACE}/vtest/vtest" -V >/dev/null 2>&1; then
- DESTDIR="${GITHUB_WORKSPACE}/vtest" scripts/build-vtest.sh
+ VTEST_URL=https://github.com/haproxytech/VTest2 DESTDIR="${GITHUB_WORKSPACE}/vtest" scripts/build-vtest.sh
fi
"${GITHUB_WORKSPACE}/vtest/vtest" -V
gmake CC=clang V=1 ERR=1 TARGET=freebsd USE_ZLIB=1 USE_PCRE2=1 USE_PCRE2_JIT=1 USE_OPENSSL=1 USE_LUA=1 LUA_INC=/usr/local/include/lua54 LUA_LIB=/usr/local/lib LUA_LIB_NAME=lua-5.4