Skip to content

Commit 9113d8a

Browse files
committed
Corrected webgl definition
1 parent 0f0f7f3 commit 9113d8a

File tree

1 file changed

+28
-17
lines changed

1 file changed

+28
-17
lines changed

.yamato/webgl-build.yml

Lines changed: 28 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,44 @@
77
webgl_build_{{ project.name }}_tests_{{ editor }}:
88
name: WebGl Build and Tests - [{{ project.name }}, {{ editor }}]
99
agent:
10-
type: {{ platform.type }}
11-
image: {{ platform.image }}
12-
flavor: {{ platform.flavor }}
10+
type: {{ platform.type }}
11+
image: {{ platform.image }}
12+
flavor: {{ platform.flavor }}
1313
commands:
1414
- pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
15-
- curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat
15+
# Download appropriate UTR based on platform
16+
- |
17+
{% if platform.name == "win" %}
18+
curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr.bat --output utr.bat
19+
{% else %}
20+
curl -s https://artifactory.prd.it.unity3d.com/artifactory/unity-tools-local/utr-standalone/utr --output utr
21+
chmod +x utr
22+
{% endif %}
1623
- python .yamato/disable-burst-if-requested.py --project-path {{ project.path }} --platform WebGL
1724
- unity-downloader-cli -u {{ editor }} -c editor -c webgl -c il2cpp -w --fast
1825
- |
19-
set UTR_VERSION=1.35.1
20-
utr.bat --artifacts_path=artifacts --timeout=1800 --testproject={{ project.name }} --editor-location=.Editor --suite=playmode --platform=WebGL --build-only --player-save-path=build/players --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --scripting-backend=il2cpp --extra-editor-arg="-cloudEnvironment staging"
26+
set UTR_VERSION=1.35.1
27+
{% if platform.name == "win" %}
28+
utr.bat
29+
{% else %}
30+
./utr
31+
{% endif %} --artifacts_path=artifacts --timeout=1800 --testproject={{ project.name }} --editor-location=.Editor --suite=playmode --platform=WebGL --build-only --player-save-path=build/players --extra-editor-arg=-batchmode --extra-editor-arg=-nographics --scripting-backend=il2cpp --extra-editor-arg="-cloudEnvironment staging"
2132
artifacts:
2233
logs:
2334
paths:
24-
- '*.log'
25-
- '*.xml'
26-
- artifacts/**/*
27-
- testproject/Logs/**
28-
- testproject/Library/*.log
29-
- testproject/*.log
30-
- testproject/Builds/*.log
31-
- build/test-results/**
32-
- artifacts/**
33-
- build/players/**
35+
- '*.log'
36+
- '*.xml'
37+
- artifacts/**/*
38+
- testproject/Logs/**
39+
- testproject/Library/*.log
40+
- testproject/*.log
41+
- testproject/Builds/*.log
42+
- build/test-results/**
43+
- artifacts/**
44+
- build/players/**
3445
variables:
3546
CI: true
3647
ENABLE_BURST_COMPILATION: False
3748
{% endfor -%}
3849
{% endfor -%}
39-
{% endfor -%}
50+
{% endfor -%}

0 commit comments

Comments
 (0)