fix(actions): update error handling in macOS build workflow with improved suggestion formatting
Some checks failed
Test macOS Build Action / test-macos-build (push) Failing after 14m11s
Some checks failed
Test macOS Build Action / test-macos-build (push) Failing after 14m11s
This commit is contained in:
parent
146dea5121
commit
51315a772d
@ -112,22 +112,19 @@ jobs:
|
|||||||
if grep -q "GlobalDefinitions.*This is not allowed" "$GITHUB_WORKSPACE"/*.log 2>/dev/null || grep -q "BuildEnvironment = TargetBuildEnvironment.Unique" "$GITHUB_WORKSPACE"/*.log 2>/dev/null; then
|
if grep -q "GlobalDefinitions.*This is not allowed" "$GITHUB_WORKSPACE"/*.log 2>/dev/null || grep -q "BuildEnvironment = TargetBuildEnvironment.Unique" "$GITHUB_WORKSPACE"/*.log 2>/dev/null; then
|
||||||
echo "🔍 Found issue with GlobalDefinitions in build target."
|
echo "🔍 Found issue with GlobalDefinitions in build target."
|
||||||
echo "⚠️ Fix required in LuckyWorld.Target.cs - need to add BuildEnvironment = TargetBuildEnvironment.Unique;"
|
echo "⚠️ Fix required in LuckyWorld.Target.cs - need to add BuildEnvironment = TargetBuildEnvironment.Unique;"
|
||||||
cat << 'EOF'
|
echo "Fix suggestion for LuckyWorld.Target.cs:"
|
||||||
|
echo "Add this line in the constructor:"
|
||||||
Fix suggestion for LuckyWorld.Target.cs:
|
echo " BuildEnvironment = TargetBuildEnvironment.Unique;"
|
||||||
Add this line in the constructor:
|
echo ""
|
||||||
BuildEnvironment = TargetBuildEnvironment.Unique;
|
echo "Example:"
|
||||||
|
echo " public LuckyWorldTarget(TargetInfo Target) : base(Target)"
|
||||||
Example:
|
echo " {"
|
||||||
public LuckyWorldTarget(TargetInfo Target) : base(Target)
|
echo " Type = TargetType.Game;"
|
||||||
{
|
echo " DefaultBuildSettings = BuildSettingsVersion.V5;"
|
||||||
Type = TargetType.Game;
|
echo " BuildEnvironment = TargetBuildEnvironment.Unique; // Add this line"
|
||||||
DefaultBuildSettings = BuildSettingsVersion.V5;
|
echo " "
|
||||||
BuildEnvironment = TargetBuildEnvironment.Unique; // Add this line
|
echo " // Rest of your constructor..."
|
||||||
|
echo " }"
|
||||||
// Rest of your constructor...
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user