Skip to content

Commit e8fccb9

Browse files
committed
Added base and extension fields
1 parent ba17659 commit e8fccb9

File tree

3 files changed

+19
-7
lines changed

3 files changed

+19
-7
lines changed

.yamato/desktop-standalone-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ desktop_standalone_tests_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{
1818
{% endif %}
1919
commands:
2020
# Installing tools
21-
{% if platform.name | downcase contains "ubuntu" %}
21+
{% if platform.base == "ubuntu" %}
2222
- sudo apt-get update -q
2323
- sudo apt install -qy imagemagick
2424
{% endif %}
@@ -27,30 +27,30 @@ desktop_standalone_tests_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{
2727

2828
# Platform specific UTR setup
2929
- |
30-
{% if platform.name | downcase contains "win" %}
30+
{% if platform.base == "win" %}
3131
curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat
3232
{% else %}
3333
curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr && chmod +x utr
3434
{% endif %}
3535

3636
# Installing editor
37-
{% if platform.name | downcase contains "arm64" %}
37+
{% if platform.extension == "arm64" %}
3838
- unity-downloader-cli --arch arm64 -u {{ editor }} -c Editor {% if backend == "il2cpp" %} -c il2cpp {% endif %} --fast --wait
3939
{% else %}
4040
- unity-downloader-cli -u {{ editor }} -c Editor {% if backend == "il2cpp" %} -c il2cpp {% endif %} --fast --wait
4141
{% endif %}
4242

4343
# Build Player
4444
- |
45-
{% if platform.name | downcase contains "win" %}
45+
{% if platform.base == "win" %}
4646
utr --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --testproject={{ project.path }} --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend }} --build-only --testfilter=Unity.Netcode.RuntimeTests --extra-editor-arg=-batchmode --extra-editor-arg=-nographics
4747
{% else %}
4848
./utr --suite=playmode --platform={{ platform.standalone }} --editor-location=.Editor --testproject={{ project.path }} --player-save-path=build/players --artifacts_path=build/logs --scripting-backend={{ backend }} --build-only --testfilter=Unity.Netcode.RuntimeTests --extra-editor-arg=-batchmode --extra-editor-arg=-nographics
4949
{% endif %}
5050

5151
# Run Standalone tests
5252
- |
53-
{% if platform.name | downcase contains "win" %}
53+
{% if platform.base == "win" %}
5454
utr --suite=playmode --platform={{ platform.standalone }} --player-load-path=build/players --artifacts_path=build/test-results --scripting-backend={{ backend }} --testfilter=Unity.Netcode.RuntimeTests --playergraphicsapi=Null
5555
{% else %}
5656
./utr --suite=playmode --platform={{ platform.standalone }} --player-load-path=build/players --artifacts_path=build/test-results --scripting-backend={{ backend }} --testfilter=Unity.Netcode.RuntimeTests --playergraphicsapi=Null

.yamato/project.metafile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,36 +16,48 @@ test_platforms:
1616
image: package-ci/ubuntu-22.04:v4
1717
flavor: b1.large
1818
standalone: StandaloneLinux64
19+
base: ubuntu
20+
extension: default
1921
# Desktop platforms cover all main desktop platforms
2022
desktop:
2123
- name: ubuntu
2224
type: Unity::VM
2325
image: package-ci/ubuntu-22.04:v4
2426
flavor: b1.large
2527
standalone: StandaloneLinux64
28+
base: ubuntu
29+
extension: default
2630
- name: win
2731
type: Unity::VM
2832
image: package-ci/win10:v4
2933
flavor: b1.large
3034
standalone: StandaloneWindows64
35+
base: win
36+
extension: default
3137
- name: mac
3238
type: Unity::VM::osx
3339
image: package-ci/macos-13:v4
3440
flavor: m1.mac
3541
standalone: StandaloneOSX
3642
model: default
43+
base: mac
44+
extension: default
3745
- name: mac-arm64
3846
type: Unity::VM::osx
3947
image: package-ci/macos-13-arm64:v4
4048
flavor: m1.mac
4149
standalone: StandaloneOSX
4250
model: M1
51+
base: mac
52+
extension: arm64
4353
- name: windows-arm64
4454
type: Unity::VM::Azure
4555
image: package-ci/win11-arm64:v4
4656
flavor: b1.large
4757
standalone: StandaloneWindows64
4858
model: arm
59+
base: win
60+
extension: arm64
4961
# Mobile platforms cover all main mobile devices. There is a split between the build and run phase so there is a need of splitting specification for both (since its different)
5062
mobile_build:
5163
# It would be simpler to build android app with ubuntu but the option with windows was chosen since it covers more users

.yamato/webgl-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ webgl_build_{{ project.name }}_{{ platform }}_{{ editor }}:
2121

2222
# Platform specific UTR setup
2323
- |
24-
{% if platform.name == "Win" %}
24+
{% if platform.base == "win" %}
2525
curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat
2626
{% else %}
2727
curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr && chmod +x utr
@@ -35,7 +35,7 @@ webgl_build_{{ project.name }}_{{ platform }}_{{ editor }}:
3535

3636
# Build Player
3737
- |
38-
{% if platform.name == "Win" %}
38+
{% if platform.base == "win" %}
3939
utr.bat --suite=playmode --platform=WebGL --artifacts_path=build/test-results --testproject={{ project.path }} --editor-location=.Editor --build-only --player-save-path=build/players --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --scripting-backend=il2cpp --extra-editor-arg="-cloudEnvironment staging"
4040
{% else %}
4141
./utr --suite=playmode --platform=WebGL --artifacts_path=build/test-results --testproject={{ project.path }} --editor-location=.Editor --build-only --player-save-path=build/players --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --scripting-backend=il2cpp --extra-editor-arg="-cloudEnvironment staging"

0 commit comments

Comments
 (0)