File tree Expand file tree Collapse file tree 1 file changed +11
-19
lines changed
.github/workflows/reusable/cached-install Expand file tree Collapse file tree 1 file changed +11
-19
lines changed Original file line number Diff line number Diff line change @@ -10,26 +10,18 @@ runs:
1010 shell : bash
1111 - name : install
1212 run : |
13+ # First try the install
1314 ./install.sh --prod ${ARCHFLAGS:-} || (
14- for target in arm64-osx x64-osx x64-linux arm64-linux arm64-android arm64-ios; do
15- BASE_DIR="/Users/runner/work/native-sdk/native-sdk/vcpkg/buildtrees/libdatachannel"
16-
17- # Function to print file if it exists
18- print_if_exists() {
19- if [ -f "$1" ]; then
20- echo "=== $2 ==="
21- cat "$1"
22- fi
23- }
24-
25- print_if_exists "$BASE_DIR/config-$target-dbg-CMakeCache.txt.log" "config-$target-dbg-CMakeCache.txt.log"
26- print_if_exists "$BASE_DIR/config-$target-rel-CMakeCache.txt.log" "config-$target-rel-CMakeCache.txt.log"
27- print_if_exists "$BASE_DIR/config-$target-dbg-CMakeConfigureLog.yaml.log" "config-$target-dbg-CMakeConfigureLog.yaml.log"
28- print_if_exists "$BASE_DIR/config-$target-rel-CMakeConfigureLog.yaml.log" "config-$target-rel-CMakeConfigureLog.yaml.log"
29- print_if_exists "$BASE_DIR/config-$target-rel-ninja.log" "config-$target-rel-ninja.log"
30- print_if_exists "$BASE_DIR/config-$target-out.log" "config-$target-out.log"
31- print_if_exists "../../$target-dbg/CMakeCache.txt" "../../$target-dbg/CMakeCache.txt"
32- done
15+ echo "=== CMake Configuration Output ===" && \
16+ cat CMakeFiles/CMakeConfigureOutput.log 2>/dev/null || true && \
17+ echo "=== CMake Error Output ===" && \
18+ cat CMakeFiles/CMakeError.log 2>/dev/null || true && \
19+
20+ # Then try to find and print any existing build logs
21+ echo "=== Searching for build logs ===" && \
22+ find . -type f -name "*.log" -exec sh -c 'echo "=== {} ==="; cat "{}" || true' \; && \
23+
24+ # Finally exit with error
3325 exit 1
3426 )
3527 shell : bash
You can’t perform that action at this time.
0 commit comments