Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
b59eaf0
chore: Add yamato hello world
LukeStampfli Aug 3, 2021
2fa2436
chore: add yamato project pack
LukeStampfli Aug 3, 2021
eead466
chore: remove hello world
LukeStampfli Aug 3, 2021
7797707
add project test yml
LukeStampfli Aug 3, 2021
46436b8
chore: update project-test yml to only run project tests
LukeStampfli Aug 3, 2021
8fc71ff
chore: use utr to create builds
LukeStampfli Aug 5, 2021
639b7ad
chore: fix test name
LukeStampfli Aug 5, 2021
25c692a
chore: add linux and macos platforms
LukeStampfli Aug 5, 2021
47d9d3d
chore: develop trigger and run pip everywhere
LukeStampfli Aug 5, 2021
5a860f0
chore: possibly fix windows build
LukeStampfli Aug 5, 2021
392def5
chore: test
LukeStampfli Aug 5, 2021
e7b857b
chore: fix platform branches
LukeStampfli Aug 5, 2021
a8408bb
chore: re-enable develop trigger
LukeStampfli Aug 5, 2021
d2e7859
chore: fix utr command
LukeStampfli Aug 5, 2021
d72f990
Revert "chore: fix utr command"
LukeStampfli Aug 5, 2021
7d29fb6
no message
LukeStampfli Aug 5, 2021
2d12861
try linux only
LukeStampfli Aug 5, 2021
8bb19df
remove sudo
LukeStampfli Aug 5, 2021
5b5793a
test
LukeStampfli Aug 5, 2021
e386fd7
run ls
LukeStampfli Aug 5, 2021
ca8d80b
no message
LukeStampfli Aug 5, 2021
76b1d53
finally
LukeStampfli Aug 5, 2021
5ef4924
temp: test yamato fail
LukeStampfli Aug 12, 2021
8ab6750
try use regular unity build
LukeStampfli Aug 12, 2021
2d7e027
fix path issues and make build succeed
LukeStampfli Aug 12, 2021
8ee4275
try fix editor path
LukeStampfli Aug 12, 2021
bde5714
test
LukeStampfli Aug 12, 2021
95e3512
fix mac linux
LukeStampfli Aug 12, 2021
861ee26
actually fix mac linux
LukeStampfli Aug 12, 2021
8bd3cd7
this should work
LukeStampfli Aug 12, 2021
4e6b866
no message
LukeStampfli Aug 12, 2021
e594988
no message
LukeStampfli Aug 12, 2021
ed04b97
tree
LukeStampfli Aug 12, 2021
5861650
no message
LukeStampfli Aug 12, 2021
2f28aa1
no message
LukeStampfli Aug 12, 2021
77c2663
no message
LukeStampfli Aug 12, 2021
3d56f1f
no message
LukeStampfli Aug 12, 2021
5e63e63
try macos
LukeStampfli Aug 12, 2021
73dbabb
macos build fix
LukeStampfli Aug 12, 2021
00431a3
CI on spaceshooter and invaders for macos and linux
LukeStampfli Aug 12, 2021
71bbe8d
final test fail
LukeStampfli Aug 12, 2021
8829e53
Revert "final test fail"
LukeStampfli Aug 12, 2021
24b39a1
Final CI changes
LukeStampfli Aug 12, 2021
da8f45f
revert change made by mistake
LukeStampfli Aug 12, 2021
3870632
update comment
LukeStampfli Aug 12, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .yamato/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{% metadata_file .yamato/project.metafile %}
---

{% for project in projects -%}
{% for editor in 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
- 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 -%}

artifacts:
players:
paths:
- "build/players/**"
logs:
paths:
- "build/logs/**"

{% endfor -%}
{% endfor -%}
{% endfor -%}

# Run all relevant tasks when a pull request targeting the develop / main
develop_pull_request_trigger:
name: Develop Branch Triggers
dependencies:
{% for project in projects -%}
{% for editor in test_editors -%}
{% for platform in test_platforms -%}
- .yamato/build.yml#build_{{ project.name }}_{{ editor }}_{{ platform.name }}
{% endfor -%}
{% endfor -%}
{% endfor -%}
triggers:
cancel_old_ci: true
pull_requests:
- targets:
only:
- "main"
- "develop"
29 changes: 29 additions & 0 deletions .yamato/project.metafile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Editors where tests will happen. The first entry of this array is also used
# for validation.
#
# Therefore, **do not** put an older V1-lifecycle ver.
# like 2020.x or 2019.x on top of 'test_editors'
test_editors:
- 2020.3

# Platforms that will be tested. The first entry in this array will also
# be used for validation
test_platforms:
- name: win
type: Unity::VM
image: package-ci/win10:stable
platform: StandaloneWindows64
flavor: b1.large
- name: mac
type: Unity::VM::osx
image: package-ci/mac:stable
platform: StandaloneOSX
flavor: m1.mac

# Projects within the repository that will be tested. Name will be used
# for job ids, so it should not contain spaces/non-supported characters
projects:
- name: 2dspaceshooter
path: Basic/2DSpaceShooter
- name: invaders
path: Basic/Invaders
2 changes: 1 addition & 1 deletion Basic/2DSpaceShooter/Assets/Scripts/Bullet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public void Config(ShipControl owner, int damage, bool bounce, float lifetime)
m_Owner = owner;
m_Damage = damage;
m_Bounce = bounce;

if (IsServer)
{
// This is bad code don't use invoke.
Expand Down