Skip to content

Commit be7fee4

Browse files
committed
ci: add tests for Unity 6 and build profiles
1 parent 5eccc32 commit be7fee4

File tree

5 files changed

+82
-3
lines changed

5 files changed

+82
-3
lines changed

.github/workflows/build-tests-ubuntu.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ env:
3636

3737
jobs:
3838
buildForAllPlatformsUbuntu:
39-
name: ${{ matrix.targetPlatform }} on ${{ matrix.unityVersion }}
39+
name:
40+
"${{ matrix.targetPlatform }} on ${{ matrix.unityVersion}}${{startsWith(matrix.buildProfile, 'Assets') && ' (via Build Profile)' || '' }}"
4041
runs-on: ubuntu-latest
4142
strategy:
4243
fail-fast: false
@@ -91,6 +92,12 @@ jobs:
9192
- targetPlatform: StandaloneWindows64
9293
additionalParameters: -standaloneBuildSubtarget Server
9394
buildWithIl2cpp: true
95+
include:
96+
- unityVersion: 6000.0.36f1
97+
targetPlatform: WebGL
98+
- unityVersion: 6000.0.36f1
99+
targetPlatform: WebGL
100+
buildProfile: 'Assets/Settings/Build Profiles/Sample WebGL Build Profile.asset'
94101

95102
steps:
96103
- name: Clear Space for Android Build
@@ -136,6 +143,7 @@ jobs:
136143
with:
137144
buildName: 'GameCI Test Build'
138145
projectPath: ${{ matrix.projectPath }}
146+
buildProfile: ${{ matrix.buildProfile }}
139147
unityVersion: ${{ matrix.unityVersion }}
140148
targetPlatform: ${{ matrix.targetPlatform }}
141149
customParameters: -profile SomeProfile -someBoolean -someValue exampleValue ${{ matrix.additionalParameters }}
@@ -158,6 +166,7 @@ jobs:
158166
with:
159167
buildName: 'GameCI Test Build'
160168
projectPath: ${{ matrix.projectPath }}
169+
buildProfile: ${{ matrix.buildProfile }}
161170
unityVersion: ${{ matrix.unityVersion }}
162171
targetPlatform: ${{ matrix.targetPlatform }}
163172
customParameters: -profile SomeProfile -someBoolean -someValue exampleValue ${{ matrix.additionalParameters }}
@@ -179,6 +188,7 @@ jobs:
179188
with:
180189
buildName: 'GameCI Test Build'
181190
projectPath: ${{ matrix.projectPath }}
191+
buildProfile: ${{ matrix.buildProfile }}
182192
unityVersion: ${{ matrix.unityVersion }}
183193
targetPlatform: ${{ matrix.targetPlatform }}
184194
customParameters: -profile SomeProfile -someBoolean -someValue exampleValue ${{ matrix.additionalParameters }}
@@ -191,7 +201,6 @@ jobs:
191201
- uses: actions/upload-artifact@v4
192202
with:
193203
name:
194-
'Build ${{ matrix.targetPlatform }} on Ubuntu (${{ matrix.unityVersion }}_il2cpp_${{ matrix.buildWithIl2cpp
195-
}}_params_${{ matrix.additionalParameters }})'
204+
"Build ${{ matrix.targetPlatform }}${{ startsWith(matrix.buildProfile, 'Assets') && ' (via Build Profile)' || '' }} on Ubuntu (${{ matrix.unityVersion }}_il2cpp_${{ matrix.buildWithIl2cpp }}_params_${{ matrix.additionalParameters }})"
196205
path: build
197206
retention-days: 14

test-project/Assets/Settings.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test-project/Assets/Settings/Build Profiles.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
%YAML 1.1
2+
%TAG !u! tag:unity3d.com,2011:
3+
--- !u!114 &11400000
4+
MonoBehaviour:
5+
m_ObjectHideFlags: 0
6+
m_CorrespondingSourceObject: {fileID: 0}
7+
m_PrefabInstance: {fileID: 0}
8+
m_PrefabAsset: {fileID: 0}
9+
m_GameObject: {fileID: 0}
10+
m_Enabled: 1
11+
m_EditorHideFlags: 0
12+
m_Script: {fileID: 15003, guid: 0000000000000000e000000000000000, type: 0}
13+
m_Name: Sample WebGL Build Profile
14+
m_EditorClassIdentifier:
15+
m_AssetVersion: 1
16+
m_BuildTarget: 20
17+
m_Subtarget: 0
18+
m_PlatformId: 84a3bb9e7420477f885e98145999eb20
19+
m_PlatformBuildProfile:
20+
rid: 200022742090383361
21+
m_OverrideGlobalSceneList: 0
22+
m_Scenes: []
23+
m_ScriptingDefines: []
24+
m_PlayerSettingsYaml:
25+
m_Settings: []
26+
references:
27+
version: 2
28+
RefIds:
29+
- rid: 200022742090383361
30+
type: {class: WebGLPlatformSettings, ns: UnityEditor.WebGL, asm: UnityEditor.WebGL.Extensions}
31+
data:
32+
m_Development: 0
33+
m_ConnectProfiler: 0
34+
m_BuildWithDeepProfilingSupport: 0
35+
m_AllowDebugging: 0
36+
m_WaitForManagedDebugger: 0
37+
m_ManagedDebuggerFixedPort: 0
38+
m_ExplicitNullChecks: 0
39+
m_ExplicitDivideByZeroChecks: 0
40+
m_ExplicitArrayBoundsChecks: 0
41+
m_CompressionType: -1
42+
m_InstallInBuildFolder: 0
43+
m_CodeOptimization: 0
44+
m_WebGLClientBrowserPath:
45+
m_WebGLClientBrowserType: 0
46+
m_WebGLTextureSubtarget: 0

test-project/Assets/Settings/Build Profiles/Sample WebGL Build Profile.asset.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)