Problem: removing latest_branch breaks ABI CI job

Solution: clone latest tag instead
This commit is contained in:
Luca Boccassi 2020-05-12 00:15:03 +01:00 committed by Luca Boccassi
parent 4a863e334a
commit 364ae768fe

View File

@ -25,14 +25,17 @@ function print_abi_api_breakages() {
exit 1 exit 1
} }
git fetch --unshallow
git fetch --all --tags
LATEST_VERSION=$(git describe --abbrev=0 --tags)
./autogen.sh ./autogen.sh
./configure "${CONFIG_OPTS[@]}" ./configure "${CONFIG_OPTS[@]}"
make VERBOSE=1 -j5 make VERBOSE=1 -j5
abi-dumper src/.libs/libzmq.so -o ${BUILD_PREFIX}/libzmq.head.dump -lver HEAD 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 cd latest_release
LATEST_VERSION=$(git describe --abbrev=0 --tags)
./autogen.sh ./autogen.sh
./configure "${CONFIG_OPTS[@]}" ./configure "${CONFIG_OPTS[@]}"
make VERBOSe=1 -j5 make VERBOSe=1 -j5