47 строки
2.3 KiB
YAML
47 строки
2.3 KiB
YAML
{% metadata_file .yamato/project.metafile %}
|
|
---
|
|
|
|
{% for project in projects -%}
|
|
{% for editor in project.test_editors -%}
|
|
{% 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
|
|
{% 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 -%}
|
|
- 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
|
|
{% endif -%}
|
|
{% endif -%}
|
|
|
|
artifacts:
|
|
players:
|
|
paths:
|
|
{% if project.name == "dedicatedgameserver" -%} #dedicatedgameserver sample builds via custom editor script into different location
|
|
- "{{ project.path }}/Builds/**"
|
|
{% else -%}
|
|
- "{{ project.path }}/build/players/**"
|
|
{% endif -%}
|
|
logs:
|
|
paths:
|
|
- "build.log"
|
|
|
|
{% endfor -%}
|
|
{% endfor -%}
|
|
{% endfor -%} |