Run build command from workflow
All checks were successful
Unreal Engine Build / macos-build (push) Successful in 1h0m50s

This commit is contained in:
Goran Lazarevski 2025-03-27 23:30:32 +01:00 committed by Goran Lazarevski
parent 9f700111f7
commit 26350c197e
6 changed files with 8 additions and 46 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -72,52 +72,8 @@ jobs:
- name: Build Unreal Project
run: |
# Debug information
echo "=== Environment Information ==="
echo "macOS Version:"
sw_vers
echo "Current working directory: $(pwd)"
ls -la # List all files in current directory
echo "=== Unreal Engine Information ==="
ls -la "$UE_ROOT/Build/BatchFiles"
echo "=== Project Information ==="
# Detailed search for the project file
echo "Searching for .uproject files:"
find . -name "*.uproject" -type f
# Get the absolute path of the project file
UPROJECT_PATH=$(find . -name "*.uproject" -type f | head -1)
if [ -z "$UPROJECT_PATH" ]; then
echo "Error: Could not find .uproject file"
exit 1
fi
# Convert to absolute path and verify file exists
UPROJECT_ABSOLUTE_PATH=$(realpath "$UPROJECT_PATH")
echo "Project absolute path: $UPROJECT_ABSOLUTE_PATH"
if [ ! -f "$UPROJECT_ABSOLUTE_PATH" ]; then
echo "Error: Project file does not exist at: $UPROJECT_ABSOLUTE_PATH"
exit 1
fi
echo "Using Unreal Engine at: $UE_ROOT"
# Make the project file readable and executable
chmod 755 "$UPROJECT_ABSOLUTE_PATH"
# Run the build using absolute paths
chmod +x "$UE_ROOT/Build/BatchFiles/RunUAT.sh"
"$UE_ROOT/Build/BatchFiles/RunUAT.sh" BuildCookRun \
-project="$UPROJECT_ABSOLUTE_PATH" \
-noP4 \
-platform=Mac \
-clientconfig=Development \
-serverconfig=Shipping \
-cook -build -stage -pak -archive \
-archivedirectory="$(pwd)/Builds"
chmod +x ./mac_build.sh
./mac_build.sh
- name: Upload build artifacts
uses: actions/upload-artifact@v3

0
mac_build.sh Normal file → Executable file
View File

6
xcode_build.log Normal file
View File

@ -0,0 +1,6 @@
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace Luckyrobots.xcworkspace -scheme LuckyrobotsEditor -configuration Development
User defaults from command line:
IDEPackageSupportUseBuiltinSCM = YES