Skip to content

Commit

Permalink
More release debug
Browse files Browse the repository at this point in the history
  • Loading branch information
SanttuRantanen committed Dec 6, 2024
1 parent b70d236 commit e633077
Showing 1 changed file with 11 additions and 19 deletions.
30 changes: 11 additions & 19 deletions .github/workflows/reusable/cached-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e633077

Please sign in to comment.