Skip to content

Commit ba17659

Browse files
committed
Corrected desktop standalone for arm64 tests
1 parent 2825f52 commit ba17659

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.yamato/desktop-standalone-tests.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
desktop_standalone_tests_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{ editor }}:
1111
name : Standalone Tests - NGO {{ project.name }} - [{{ platform.name }}, {{ editor }}, {{ backend }}]
1212
agent:
13-
type: {% if platform.name == "mac" or platform.name == "mac-arm64" %} {{ platform.type }} {% else %} {{ platform.type }}::GPU {% endif %}
13+
type: {% if platform.name | downcase contains "mac" %} {{ platform.type }} {% else %} {{ platform.type }}::GPU {% endif %}
1414
image: {{ platform.image }}
1515
flavor: {{ platform.flavor }}
1616
{% if platform.model %}
1717
model: {{ platform.model }}
1818
{% endif %}
1919
commands:
2020
# Installing tools
21-
{% if platform.name == "ubuntu" %}
21+
{% if platform.name | downcase contains "ubuntu" %}
2222
- sudo apt-get update -q
2323
- sudo apt install -qy imagemagick
2424
{% endif %}
@@ -27,26 +27,30 @@ desktop_standalone_tests_{{ project.name }}_{{ platform.name }}_{{ backend }}_{{
2727

2828
# Platform specific UTR setup
2929
- |
30-
{% if platform.name == "win" %}
30+
{% if platform.name | downcase contains "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" %}
38+
- unity-downloader-cli --arch arm64 -u {{ editor }} -c Editor {% if backend == "il2cpp" %} -c il2cpp {% endif %} --fast --wait
39+
{% else %}
3740
- unity-downloader-cli -u {{ editor }} -c Editor {% if backend == "il2cpp" %} -c il2cpp {% endif %} --fast --wait
41+
{% endif %}
3842

3943
# Build Player
4044
- |
41-
{% if platform.name == "win" %}
45+
{% if platform.name | downcase contains "win" %}
4246
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
4347
{% else %}
4448
./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
4549
{% endif %}
4650

4751
# Run Standalone tests
4852
- |
49-
{% if platform.name == "win" %}
53+
{% if platform.name | downcase contains "win" %}
5054
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
5155
{% else %}
5256
./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

0 commit comments

Comments
 (0)