Run build command from workflow
All checks were successful
Unreal Engine Build / macos-build (push) Successful in 1h0m50s
All checks were successful
Unreal Engine Build / macos-build (push) Successful in 1h0m50s
This commit is contained in:
parent
9f700111f7
commit
26350c197e
@ -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
|
||||
|
Binary file not shown.
Binary file not shown.
0
mac_build.sh
Normal file → Executable file
0
mac_build.sh
Normal file → Executable file
6
xcode_build.log
Normal file
6
xcode_build.log
Normal 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user