diff --git a/.github/workflows/validation.yaml b/.github/workflows/validation.yaml index dd64348fe..9a1b32cdd 100644 --- a/.github/workflows/validation.yaml +++ b/.github/workflows/validation.yaml @@ -396,7 +396,7 @@ jobs: tput colors date -u run: | - sh -x ./test/test_nodebuilder --ref "${GITHUB_SHA}" + sh -x ./nodebuilder [ "$?" -gt 0 ] && echo "test_nodebuilder exited with status $?" >&2 && exit 1 [ -f "/home/bitcoin/.bitcoin/debug.log" ] && cp "/home/bitcoin/.bitcoin/debug.log" . find / -name debug.log 2> /dev/null | grep bitcoin || true diff --git a/nodebuilder b/nodebuilder index 6fc0889e5..088f15dc3 100755 --- a/nodebuilder +++ b/nodebuilder @@ -4,6 +4,7 @@ set -o errexit set -o nounset +set -x check_dpkg_lock() { @@ -68,10 +69,16 @@ compile_bitcoin_from_source() cd "${COMPILE_DIRECTORY}"/ log_info 'Analyzing hardware configuration.' + log_info 'DEBUG searching for autoreconf without sudo' + find / -name autoreconf 2> /dev/null + log_info 'DEBUG searching for autoreconf with sudo' + sudo find / -name autoreconf 2> /dev/null + # shellcheck disable=SC2230 command -v autoreconf > /dev/null 2>&1 || + hash autoreconf > /dev/null 2>&1 || + which autoreconf > /dev/null 2>&1 || throw_error "Build dependencies failed to install. Manually install 'autoconf' and try again." - ./autogen.sh > /dev/null 2> "${STDERR_COMPILE_LOG_FILE}" - grep -v 'build-aux' "${STDERR_COMPILE_LOG_FILE}" >&2 || true + ./autogen.sh log_info 'Configuring the build environment.' case "${TARGET_KERNEL}" in