Skip to content

Commit

Permalink
chore: support env var of Unreal Engine
Browse files Browse the repository at this point in the history
  • Loading branch information
HaiyiMei committed Aug 5, 2024
1 parent bf3d90b commit 9bc7b76
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .circleci/continue_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,26 +41,36 @@ jobs:
RUN_TEST: << pipeline.parameters.run-unreal-test >>
PYTHONIOENCODING: "utf-8"
command: |
echo "#### Get Unreal Engine ####"
$UE_51 = if (Test-Path env:$UE_51) { $env:UE_51 } else {
"C:/Program Files/Epic Games/UE_5.1/Engine/Binaries/Win64/UnrealEditor-Cmd.exe"
}
$UE_52 = if (Test-Path env:$UE_52) { $env:UE_52 } else {
"C:/Program Files/Epic Games/UE_5.2/Engine/Binaries/Win64/UnrealEditor-Cmd.exe"
}
$UE_53 = if (Test-Path env:$UE_53) { $env:UE_53 } else {
"C:/Program Files/Epic Games/UE_5.3/Engine/Binaries/Win64/UnrealEditor-Cmd.exe"
}
echo "#### Install XRFeitoria Package ####"
conda activate xrfeitoria
python -m pip install .
mkdir src/dist -ErrorAction SilentlyContinue -Force
if ($env:BUILD_UNREAL_PLUGIN -eq 1) {
echo "#### Building Unreal Plugin ####"
python -m xrfeitoria.utils.publish_plugins build-unreal `
-u "C:/Program Files/Epic Games/UE_5.1/Engine/Binaries/Win64/UnrealEditor-Cmd.exe" `
-u "C:/Program Files/Epic Games/UE_5.2/Engine/Binaries/Win64/UnrealEditor-Cmd.exe" `
-u "C:/Program Files/Epic Games/UE_5.3/Engine/Binaries/Win64/UnrealEditor-Cmd.exe"
-u $UE_51 `
-u $UE_52 `
-u $UE_53
$env:XRFEITORIA__VERSION=$(python -c "import xrfeitoria; print(xrfeitoria.__version__)")
$env:XRFEITORIA__DIST_ROOT="$PWD/src"
}
if ($env:RUN_TEST -eq 1) {
echo "#### Running Tests ####"
python -m tests.setup_ci -u "C:/Program Files/Epic Games/UE_5.1/Engine/Binaries/Win64/UnrealEditor-Cmd.exe"
python -m tests.setup_ci -u $UE_51
python -m tests.unreal.main
python -m tests.setup_ci -u "C:/Program Files/Epic Games/UE_5.2/Engine/Binaries/Win64/UnrealEditor-Cmd.exe"
python -m tests.setup_ci -u $UE_52
python -m tests.unreal.main
python -m tests.setup_ci -u "C:/Program Files/Epic Games/UE_5.3/Engine/Binaries/Win64/UnrealEditor-Cmd.exe"
python -m tests.setup_ci -u $UE_53
python -m tests.unreal.main
}
- when:
Expand Down

0 comments on commit 9bc7b76

Please sign in to comment.