2021-08-18 12:18:46 +03:00
{% metadata_file .yamato/project.metafile %}
---
{% for project in projects -%}
2024-03-22 15:05:57 +03:00
{% for editor in project.test_editors -%}
2021-08-18 12:18:46 +03:00
{% for platform in test_platforms -%}
build_{{ project.name }}_{{ editor }}_{{ platform.name }}:
name : Build Project {{ project.name }} - Package {{ package.name }} - {{ editor }} on {{ platform.name }}
variables :
UTR_VERSION : current
agent :
type : {{ platform.type }}
image : {{ platform.image }}
flavor : {{ platform.flavor}}
commands :
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
2024-03-22 15:05:57 +03:00
{% if project.name == "dedicatedgameserver" -%} #dedicatedgameserver sample builds via custom editor script. This script generates client and server builds on the Mac, Windows, and Linux platforms
- unity-downloader-cli -u {{ editor }} -c editor -c macOS -c Windows -c Linux -c macOSDedicatedServerBuildSupport -c LinuxDedicatedServerBuildSupport -c WindowsDedicatedServerBuildSupport --wait --published --fast
{% if platform.name == "win" -%} #windows
- .Editor\Unity.exe -batchmode -nographics -logfile build.log -executeMethod Unity.DedicatedGameServerSample.Editor.BuildHelpers.BuildEverything -projectPath {{ project.path }} -quit
{% else -%}
- .Editor/Unity.app/Contents/MacOS/Unity -batchmode -nographics -logfile build.log -executeMethod Unity.DedicatedGameServerSample.Editor.BuildHelpers.BuildEverything -projectPath {{ project.path }} -quit
{% endif -%}
{% else -%}
2021-08-18 12:18:46 +03:00
- unity-downloader-cli -u {{ editor }} -c editor --wait --published --fast
{% if platform.name == "win" -%} #windows
- .Editor\Unity.exe -projectpath {{ project.path }} -batchmode -quit -logfile build.log -buildWindowsPlayer build\players\test.exe
{% else -%}
- .Editor/Unity.app/Contents/MacOS/Unity -projectpath {{ project.path }} -batchmode -quit -logfile build.log -buildOSXUniversalPlayer ./build/players/test
2024-03-22 15:05:57 +03:00
{% endif -%}
2021-08-18 12:18:46 +03:00
{% endif -%}
artifacts :
players :
paths :
2024-03-22 15:05:57 +03:00
{% if project.name == "dedicatedgameserver" -%} #dedicatedgameserver sample builds via custom editor script into different location
- "{{ project.path }}/Builds/**"
{% else -%}
- "{{ project.path }}/build/players/**"
{% endif -%}
2021-08-18 12:18:46 +03:00
logs :
paths :
2024-03-22 15:05:57 +03:00
- "build.log"
2021-08-18 12:18:46 +03:00
2021-11-10 16:43:30 +03:00
{% endfor -%}
{% endfor -%}
2024-03-22 15:05:57 +03:00
{% endfor -%}