mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-05 14:06:27 -05:00
ci: Handle log files regardless of CMake's version
This commit is contained in:
parent
a5fa90706a
commit
6e5f33af58
2 changed files with 12 additions and 1 deletions
|
@ -121,7 +121,7 @@ if [[ "${RUN_TIDY}" == "true" ]]; then
|
|||
BITCOIN_CONFIG_ALL="$BITCOIN_CONFIG_ALL -DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
|
||||
fi
|
||||
|
||||
bash -c "cmake -S $BASE_ROOT_DIR $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( (cat CMakeFiles/CMakeOutput.log CMakeFiles/CMakeError.log) && false)"
|
||||
bash -c "cmake -S $BASE_ROOT_DIR $BITCOIN_CONFIG_ALL $BITCOIN_CONFIG || ( (cat $(cmake -P "${BASE_ROOT_DIR}/ci/test/GetCMakeLogFiles.cmake")) && false)"
|
||||
|
||||
bash -c "make $MAKEJOBS all $GOAL" || ( echo "Build failure. Verbose build follows." && make all "$GOAL" V=1 ; false )
|
||||
|
||||
|
|
11
ci/test/GetCMakeLogFiles.cmake
Normal file
11
ci/test/GetCMakeLogFiles.cmake
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Copyright (c) 2024-present The Bitcoin Core developers
|
||||
# Distributed under the MIT software license, see the accompanying
|
||||
# file COPYING or https://opensource.org/license/mit/.
|
||||
|
||||
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.26)
|
||||
set(log_files "CMakeFiles/CMakeConfigureLog.yaml")
|
||||
else()
|
||||
set(log_files "CMakeFiles/CMakeOutput.log CMakeFiles/CMakeError.log")
|
||||
endif()
|
||||
|
||||
execute_process(COMMAND ${CMAKE_COMMAND} -E echo ${log_files})
|
Loading…
Add table
Reference in a new issue