File tree 1 file changed +11
-19
lines changed
.github/workflows/reusable/cached-install
1 file changed +11
-19
lines changed Original file line number Diff line number Diff line change @@ -10,26 +10,18 @@ runs:
10
10
shell : bash
11
11
- name : install
12
12
run : |
13
+ # First try the install
13
14
./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
33
25
exit 1
34
26
)
35
27
shell : bash
You can’t perform that action at this time.
0 commit comments