mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 15:19:07 +01:00
47d79db8a552 Merge bitcoin-core/libmultiprocess#201: bug: fix mptest hang, ProxyClient<Thread> deadlock in disconnect handler f15ae9c9b9fb Merge bitcoin-core/libmultiprocess#211: Add .gitignore 4a269b21b8c8 bug: fix ProxyClient<Thread> deadlock if disconnected as IPC call is returning 85df96482c49 Use try_emplace in SetThread instead of threads.find ca9b380ea91a Use std::optional in ConnThreads to allow shortening locks 9b0799113557 doc: describe ThreadContext struct and synchronization requirements d60db601ed9b proxy-io.h: add Waiter::m_mutex thread safety annotations 4e365b019a9f ci: Use -Wthread-safety not -Wthread-safety-analysis 15d7bafbb001 Add .gitignore fe1cd8c76131 Merge bitcoin-core/libmultiprocess#208: ci: Test minimum cmake version in olddeps job b713a0b7bfbc Merge bitcoin-core/libmultiprocess#207: ci: output CMake version in CI script 0f580397c913 ci: Test minimum cmake version in olddeps job d603dcc0eef0 ci: output CMake version in CI script git-subtree-dir: src/ipc/libmultiprocess git-subtree-split: 47d79db8a5528097b408e18f7b0bae11a6702d26
38 lines
1.1 KiB
Bash
Executable File
38 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
#
|
|
# Copyright (c) The Bitcoin Core developers
|
|
# Distributed under the MIT software license, see the accompanying
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
set -o errexit -o nounset -o pipefail -o xtrace
|
|
|
|
[ "${CI_CONFIG+x}" ] && source "$CI_CONFIG"
|
|
|
|
: "${CI_DIR:=build}"
|
|
if ! [ -v BUILD_TARGETS ]; then
|
|
BUILD_TARGETS=(all tests mpexamples)
|
|
fi
|
|
|
|
[ -n "${CI_CLEAN-}" ] && rm -rf "${CI_DIR}"
|
|
|
|
cmake --version
|
|
cmake_ver=$(cmake --version | awk '/version/{print $3; exit}')
|
|
ver_ge() { [ "$(printf '%s\n' "$2" "$1" | sort -V | head -n1)" = "$2" ]; }
|
|
|
|
src_dir=$PWD
|
|
mkdir -p "$CI_DIR"
|
|
cd "$CI_DIR"
|
|
cmake "$src_dir" "${CMAKE_ARGS[@]+"${CMAKE_ARGS[@]}"}"
|
|
if ver_ge "$cmake_ver" "3.15"; then
|
|
cmake --build . -t "${BUILD_TARGETS[@]}" -- "${BUILD_ARGS[@]+"${BUILD_ARGS[@]}"}"
|
|
else
|
|
# Older versions of cmake can only build one target at a time with --target,
|
|
# and do not support -t shortcut
|
|
for t in "${BUILD_TARGETS[@]}"; do
|
|
cmake --build . --target "$t" -- "${BUILD_ARGS[@]+"${BUILD_ARGS[@]}"}"
|
|
done
|
|
fi
|
|
ctest --output-on-failure
|