This commit is contained in:
parent
a4644aa189
commit
8af39e175b
@ -69,6 +69,32 @@ jobs:
|
||||
# Set environment variable with the correct Engine path
|
||||
echo "UE_ROOT=$UE_PATH/Engine" >> $GITHUB_ENV
|
||||
echo "Using Unreal Engine 5.5"
|
||||
|
||||
# Check if the MuJoCo library exists in the project
|
||||
PROJECT_MUJOCO_LIB="Plugins/LuckyMujoco/Source/ThirdParty/Mujoco/lib/mujoco.dylib"
|
||||
if [ -f "$PROJECT_MUJOCO_LIB" ]; then
|
||||
echo "Found MuJoCo library in the project at: $PROJECT_MUJOCO_LIB"
|
||||
|
||||
# Create the destination directory in the engine
|
||||
sudo mkdir -p "$UE_PATH/Engine/Source"
|
||||
|
||||
# Copy the library from the project to the engine
|
||||
sudo cp "$PROJECT_MUJOCO_LIB" "$UE_PATH/Engine/Source/mujoco.dylib"
|
||||
|
||||
# Make sure it's executable
|
||||
sudo chmod +x "$UE_PATH/Engine/Source/mujoco.dylib"
|
||||
|
||||
echo "Copied MuJoCo library to Engine/Source directory:"
|
||||
ls -la "$UE_PATH/Engine/Source/mujoco.dylib"
|
||||
else
|
||||
echo "WARNING: MuJoCo library not found in the project at: $PROJECT_MUJOCO_LIB"
|
||||
echo "Creating a dummy file instead..."
|
||||
|
||||
# Create a dummy file
|
||||
sudo mkdir -p "$UE_PATH/Engine/Source"
|
||||
sudo bash -c "echo '/* Dummy MuJoCo library */' > '$UE_PATH/Engine/Source/mujoco.dylib'"
|
||||
sudo chmod +x "$UE_PATH/Engine/Source/mujoco.dylib"
|
||||
fi
|
||||
|
||||
- name: Build Unreal Project
|
||||
run: |
|
||||
|
Loading…
x
Reference in New Issue
Block a user