Skip to content

Commit b72cbaa

Browse files
committed
Windows: ignore UID errors for now
1 parent f7f6d6b commit b72cbaa

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/other/check-example.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,16 @@ echo "----------------------------------------------------"
5555
cat "$logfile"
5656
echo "----------------------------------------------------"
5757

58-
if grep --quiet "ERROR:" "$logfile"; then
58+
echo "OS: $OSTYPE"
59+
60+
# On Windows, UIDs are different than on Linux/macOS. This is currently impossible to keep consistent, so ignore those errors.
61+
# TODO omit this once 4.3 is out and UIDs work properly.
62+
if [[ "$OSTYPE" == "msys" ]]; then
63+
if grep --quiet "ERROR:" "$logfile" | grep -v --quiet "ext_resource, invalid UID"; then
64+
echo "::error::$PRE Godot engine encountered (non-UID) errors while running."
65+
exit 1
66+
fi
67+
elif grep --quiet "ERROR:" "$logfile"; then
5968
echo "::error::$PRE Godot engine encountered errors while running."
6069
exit 1
6170
fi

0 commit comments

Comments
 (0)