From e633077542221885a50d7b9f5ab428e95bfbb9d0 Mon Sep 17 00:00:00 2001 From: Santtu Date: Fri, 6 Dec 2024 17:45:49 +0700 Subject: [PATCH] More release debug --- .../reusable/cached-install/action.yml | 30 +++++++------------ 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/.github/workflows/reusable/cached-install/action.yml b/.github/workflows/reusable/cached-install/action.yml index 63ff7b7..ba4a7cf 100644 --- a/.github/workflows/reusable/cached-install/action.yml +++ b/.github/workflows/reusable/cached-install/action.yml @@ -10,26 +10,18 @@ runs: shell: bash - name: install run: | + # First try the install ./install.sh --prod ${ARCHFLAGS:-} || ( - for target in arm64-osx x64-osx x64-linux arm64-linux arm64-android arm64-ios; do - BASE_DIR="/Users/runner/work/native-sdk/native-sdk/vcpkg/buildtrees/libdatachannel" - - # Function to print file if it exists - print_if_exists() { - if [ -f "$1" ]; then - echo "=== $2 ===" - cat "$1" - fi - } - - print_if_exists "$BASE_DIR/config-$target-dbg-CMakeCache.txt.log" "config-$target-dbg-CMakeCache.txt.log" - print_if_exists "$BASE_DIR/config-$target-rel-CMakeCache.txt.log" "config-$target-rel-CMakeCache.txt.log" - print_if_exists "$BASE_DIR/config-$target-dbg-CMakeConfigureLog.yaml.log" "config-$target-dbg-CMakeConfigureLog.yaml.log" - print_if_exists "$BASE_DIR/config-$target-rel-CMakeConfigureLog.yaml.log" "config-$target-rel-CMakeConfigureLog.yaml.log" - print_if_exists "$BASE_DIR/config-$target-rel-ninja.log" "config-$target-rel-ninja.log" - print_if_exists "$BASE_DIR/config-$target-out.log" "config-$target-out.log" - print_if_exists "../../$target-dbg/CMakeCache.txt" "../../$target-dbg/CMakeCache.txt" - done + echo "=== CMake Configuration Output ===" && \ + cat CMakeFiles/CMakeConfigureOutput.log 2>/dev/null || true && \ + echo "=== CMake Error Output ===" && \ + cat CMakeFiles/CMakeError.log 2>/dev/null || true && \ + + # Then try to find and print any existing build logs + echo "=== Searching for build logs ===" && \ + find . -type f -name "*.log" -exec sh -c 'echo "=== {} ==="; cat "{}" || true' \; && \ + + # Finally exit with error exit 1 ) shell: bash