Skip to content

Commit e4d0e7d

Browse files
authored
chore: Add CI for WebGL builds [MTT-4656] (#2247)
chore: Add CI for WebGL
1 parent 02b8bbd commit e4d0e7d

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.yamato/_run-all.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ run_all_tests:
88
- .yamato/mobile-build-and-test.yml#run_{{ projects.first.name }}_tests_{{ mobile_validation_editor }}_iOS
99
- .yamato/mobile-build-and-test.yml#run_{{ projects.first.name }}_tests_{{ mobile_validation_editor }}_android
1010
# - .yamato/_run-all.yml#all_project_tests_standalone
11+
{% for project in projects -%}
12+
{% if project.name == "testproject" -%}
13+
{% for editor in project.test_editors -%}
14+
- .yamato/webgl-build.yml#build_{{ project.name }}_tests_{{ editor }}_webgl
15+
{% endfor -%}
16+
{% endif -%}
17+
{% endfor -%}
18+
1119
{% for platform in test_platforms -%}
1220
{% for project in projects -%}
1321
{% for editor in project.test_editors -%}
@@ -140,3 +148,14 @@ all_project_tests_mobile:
140148
{% endfor -%}
141149
{% endif -%}
142150
{% endfor -%}
151+
152+
all_project_tests_webgl:
153+
name: Build All Project Tests - WebGL
154+
dependencies:
155+
{% for project in projects -%}
156+
{% if project.name == "testproject" -%}
157+
{% for editor in project.test_editors -%}
158+
- .yamato/webgl-build.yml#build_{{ project.name }}_tests_{{ editor }}_webgl
159+
{% endfor -%}
160+
{% endif -%}
161+
{% endfor -%}

.yamato/webgl-build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{% metadata_file .yamato/project.metafile %}
2+
---
3+
4+
{% for project in projects -%}
5+
{% if project.name == "testproject" -%}
6+
{% for editor in project.test_editors -%}
7+
build_{{ project.name }}_tests_{{ editor }}_webgl:
8+
name: Build {{ project.name }} Tests - {{ editor }} - WebGL
9+
agent:
10+
type: Unity::VM
11+
image: dots-ci/windows10:v1.493-auto
12+
flavor: b1.xlarge
13+
commands:
14+
- 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
16+
- python .yamato/disable-burst-if-requested.py --project-path testproject --platform WebGL
17+
- unity-downloader-cli -u {{ editor }} -c editor -c webgl -c il2cpp -w --fast
18+
- |
19+
set UTR_VERSION=0.12.0
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"
21+
artifacts:
22+
logs:
23+
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/**
34+
variables:
35+
CI: true
36+
ENABLE_BURST_COMPILATION: False
37+
{% endfor -%}
38+
{% endif -%}
39+
{% endfor -%}

0 commit comments

Comments
 (0)