Skip to content

Commit 2694e2b

Browse files
committed
Moved Build Automation out of CI folder
1 parent d8fabf5 commit 2694e2b

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

.yamato/project-builders/project-builders.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,22 @@ build_{{ netcodeProject[0] }}_project:
3232
PLATFORM_WIN64_MAC_ANDROID: win64
3333
commands:
3434
# Validate inputs passed via Yamato variables
35-
- python Tools/CI/scripts/BuildAutomation/validate_params.py
35+
- python Tools/scripts/BuildAutomation/validate_params.py
3636
- echo Building {{ netcodeProject[0] }} project with Unity version of %UNITY_VERSION%, Scripting backend %SCRIPTING_BACKEND_IL2CPP_MONO%, Burst %BURST_ON_OFF% for platform %PLATFORM_WIN64_MAC_ANDROID%
3737

3838
# Clone the external project repository into a specific directory. Notice that branch is also specified.
3939
- git clone --single-branch --branch {{ netcodeProject[1].branch }} {{ netcodeProject[1].GithubRepo }} C:/ClonedProject
4040

4141
# Modify the external project's manifest to use the local N4E package from current branch on which this Yamato job is running. (requires python that should be preinstalled in the image)
42-
- python Tools/CI/scripts/BuildAutomation/manifest_update.py --manifest-path C:/ClonedProject/{{ netcodeProject[1].manifestPath }} --local-package-path %YAMATO_SOURCE_DIR%/com.unity.netcode.gameobjects
42+
- python Tools/scripts/BuildAutomation/manifest_update.py --manifest-path C:/ClonedProject/{{ netcodeProject[1].manifestPath }} --local-package-path %YAMATO_SOURCE_DIR%/com.unity.netcode.gameobjects
4343

4444
# Run python script to update ProjectSettings.asset in order to connect the project to Unity Services/set proper values.
4545
# Notice that if a project has this already set up then in theory we don't need to run this script.
46-
- python Tools/CI/scripts/BuildAutomation/connect_services.py --project-settings-path C:/ClonedProject/{{ netcodeProject[1].projectPath }}/ProjectSettings/ProjectSettings.asset
46+
- python Tools/scripts/BuildAutomation/connect_services.py --project-settings-path C:/ClonedProject/{{ netcodeProject[1].projectPath }}/ProjectSettings/ProjectSettings.asset
4747

4848
# Enable or disable Burst compilation. This step is specific to Netcode package (or any package that uses Burst)
49-
- IF "%BURST_ON_OFF%"=="on" (python Tools/CI/scripts/BuildAutomation/disable-enable-burst.py --enable-burst --project-path C:/ClonedProject/{{ netcodeProject[1].projectPath }})
50-
ELSE (python Tools/CI/scripts/BuildAutomation/disable-enable-burst.py --disable-burst --project-path C:/ClonedProject/{{ netcodeProject[1].projectPath }})
49+
- IF "%BURST_ON_OFF%"=="on" (python Tools/scripts/BuildAutomation/disable-enable-burst.py --enable-burst --project-path C:/ClonedProject/{{ netcodeProject[1].projectPath }})
50+
ELSE (python Tools/scripts/BuildAutomation/disable-enable-burst.py --disable-burst --project-path C:/ClonedProject/{{ netcodeProject[1].projectPath }})
5151

5252
# Download the Unity Editor version specified in the UNITY_VERSION variable. Il2cpp component is downloaded only if the SCRIPTING_BACKEND_IL2CPP_MONO is set to "il2cpp".
5353
# TODO: we could download components only if needed
@@ -56,7 +56,7 @@ build_{{ netcodeProject[0] }}_project:
5656
# Add BuilderScript.cs to the project so we can modify and build the project using Unity Editor.
5757
# This is a bit tricky step, notice that we also need to include proper assembly definition in order for those scripts to compile properly.
5858
# TODO: the asmdef file can be simplified
59-
- python Tools/CI/scripts/BuildAutomation/FileCopy.py "C:/ClonedProject/{{ netcodeProject[1].projectPath }}"
59+
- python Tools/scripts/BuildAutomation/FileCopy.py "C:/ClonedProject/{{ netcodeProject[1].projectPath }}"
6060

6161
# Build the project using Unity Editor. This will call the given static BuilderScripts method.
6262
# Ideally, it would be nice to parametrize the BuilderScripts (for example to pass scripting backend as parameter) but -executeMethod only calls static methods without parameters so for now we will have multiple configurations

Tools/CI/scripts/BuildAutomation/FileCopy.py renamed to Tools/scripts/BuildAutomation/FileCopy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ def main():
2121
target_dir = os.path.join(project_root, 'Assets', 'Scripts', 'Editor')
2222

2323
# The source files for build automation
24-
source_asmdef = 'Tools/CI/scripts/BuildAutomation/Unity.ProjectBuild.Editor.asmdef'
25-
source_script = 'Tools/CI/scripts/BuildAutomation/BuilderScripts.cs'
24+
source_asmdef = 'Tools/scripts/BuildAutomation/Unity.ProjectBuild.Editor.asmdef'
25+
source_script = 'Tools/scripts/BuildAutomation/BuilderScripts.cs'
2626

2727
print(f"Preparing build scripts for project at: {project_root}")
2828
print(f"Target editor script directory: {target_dir}")

0 commit comments

Comments
 (0)