Skip to content

Commit b70d236

Browse files
Debug for all targets
1 parent f7a481f commit b70d236

File tree

1 file changed

+18
-14
lines changed
  • .github/workflows/reusable/cached-install

1 file changed

+18
-14
lines changed

.github/workflows/reusable/cached-install/action.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,25 @@ runs:
1212
run: |
1313
./install.sh --prod ${ARCHFLAGS:-} || (
1414
for target in arm64-osx x64-osx x64-linux arm64-linux arm64-android arm64-ios; do
15-
echo "=== config-$target-dbg-CMakeCache.txt.log ===" && \
16-
cat /Users/runner/work/native-sdk/native-sdk/vcpkg/buildtrees/libdatachannel/config-$target-dbg-CMakeCache.txt.log || true && \
17-
echo "=== config-$target-rel-CMakeCache.txt.log ===" && \
18-
cat /Users/runner/work/native-sdk/native-sdk/vcpkg/buildtrees/libdatachannel/config-$target-rel-CMakeCache.txt.log || true && \
19-
echo "=== config-$target-dbg-CMakeConfigureLog.yaml.log ===" && \
20-
cat /Users/runner/work/native-sdk/native-sdk/vcpkg/buildtrees/libdatachannel/config-$target-dbg-CMakeConfigureLog.yaml.log || true && \
21-
echo "=== config-$target-rel-CMakeConfigureLog.yaml.log ===" && \
22-
cat /Users/runner/work/native-sdk/native-sdk/vcpkg/buildtrees/libdatachannel/config-$target-rel-CMakeConfigureLog.yaml.log || true && \
23-
echo "=== config-$target-rel-ninja.log ===" && \
24-
cat /Users/runner/work/native-sdk/native-sdk/vcpkg/buildtrees/libdatachannel/config-$target-rel-ninja.log || true && \
25-
echo "=== config-$target-out.log ===" && \
26-
cat /Users/runner/work/native-sdk/native-sdk/vcpkg/buildtrees/libdatachannel/config-$target-out.log || true && \
27-
echo "=== ../../$target-dbg/CMakeCache.txt ===" && \
28-
cat ../../$target-dbg/CMakeCache.txt || true
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"
2932
done
3033
exit 1
3134
)
3235
shell: bash
36+

0 commit comments

Comments
 (0)