From 364ae768fe655a1e1cc660bbc5669b35d65579ad Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Tue, 12 May 2020 00:15:03 +0100 Subject: [PATCH] Problem: removing latest_branch breaks ABI CI job Solution: clone latest tag instead --- builds/abi-compliance-checker/ci_build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/builds/abi-compliance-checker/ci_build.sh b/builds/abi-compliance-checker/ci_build.sh index 335d676e..f969f46e 100755 --- a/builds/abi-compliance-checker/ci_build.sh +++ b/builds/abi-compliance-checker/ci_build.sh @@ -25,14 +25,17 @@ function print_abi_api_breakages() { exit 1 } +git fetch --unshallow +git fetch --all --tags +LATEST_VERSION=$(git describe --abbrev=0 --tags) + ./autogen.sh ./configure "${CONFIG_OPTS[@]}" make VERBOSE=1 -j5 abi-dumper src/.libs/libzmq.so -o ${BUILD_PREFIX}/libzmq.head.dump -lver HEAD -git clone --depth 1 -b latest_release https://github.com/zeromq/libzmq.git latest_release +git clone --depth 1 -b ${LATEST_VERSION} https://github.com/zeromq/libzmq.git latest_release cd latest_release -LATEST_VERSION=$(git describe --abbrev=0 --tags) ./autogen.sh ./configure "${CONFIG_OPTS[@]}" make VERBOSe=1 -j5