浏览代码

Add Build pipelines for OSX on Yamato (#13)

* Test repo config with a Hello world

* Add build OSX player job defs

* Add Build all job

* Remove useless utr arg

* Update commands

* Add log to artifacts and update command

* Update dependencies name in the build all job

* Remove unsupported unity version

* Remove useless lines
/main
GitHub Enterprise 4 年前
当前提交
36496320
共有 2 个文件被更改,包括 50 次插入0 次删除
  1. 50
      .yamato/build_test_player-OSX-Metal.yml

50
.yamato/build_test_player-OSX-Metal.yml


editors:
- version: trunk
- version: 2021.1
- version: 2020.3
os_versions:
- version: 10.14
type: Unity::metal::macmini
image: slough-ops/macos-10.14-xcode:stable
flavor: m1.mac
- version: 10.15
type: Unity::VM::osx
image: desktop/unity-macos-10.15-xcode-12.2:stable
flavor: m1.mac
---
{% for editor in editors %}
{% for os_version in os_versions %}
Build_Test_Player_OSX_{{os_version.version}}_{{ editor.version }}:
name: Build_Test_Player_OSX_{{os_version.version}} on version {{ editor.version }}
agent:
type: {{ os_version.type }}
image: {{ os_version.image }}
flavor: {{ os_version.flavor }}
commands:
- brew tap --force-auto-update unity/unity git@github.cds.internal.unity3d.com:unity/homebrew-unity.git
- brew install unity/unity/unity-downloader-cli
- unity-downloader-cli -u {{editor.version}} -c editor -c il2cpp --wait --published-only
- .Editor/Unity.app/Contents/MacOS/Unity -batchmode -nographics -projectPath . -buildOSXUniversalPlayer player/player.app -logfile Unity.log -quit
artifacts:
player:
paths:
- player/**
logs:
paths:
- Unity.log
{% endfor %}
{% endfor %}
Build_All_Test_Players_OSX_Metal:
name: Build all test players OSX Metal
dependencies:
{% for editor in editors %}
{% for os_version in os_versions %}
- path: .yamato/build_test_player-OSX-Metal.yml#Build_Test_Player_OSX_{{os_version.version}}_{{ editor.version }}
rerun: always
{% endfor %}
{% endfor %}
正在加载...
取消
保存