Skip to content

Commit 3c4cb32

Browse files
ci: pin the unified warm-up to the Release code configuration
The test runner compiles in Release. An editor whose code optimization preference is Debug builds the other configuration in the warm-up, and the test session then recompiles every assembly and restarts the IL post-processor. CI's agents already default to Release, so this is a guard rather than a fix there; it removed the recompile on a machine set to Debug.
1 parent 10807fe commit 3c4cb32

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎.yamato/unified-tests.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ unified_test_{{ project.name }}_{{ platform.name }}_{{ editor }}:
3838
# Import and compile testproject in its own editor session first. The IL post-processor and compiler processes it starts
3939
# otherwise stay resident for the whole test pass and, on this agent, leave too little memory for the tests.
4040
- mkdir -p warmup
41-
- .Editor/Unity -batchmode -nographics -logFile warmup/editor.log -projectPath {{ project.path }} -quit
41+
# -releaseCodeOptimization pins the Release configuration the test runner compiles. An editor whose code optimization
42+
# preference is Debug would otherwise build the other configuration, and the test session would recompile everything.
43+
- .Editor/Unity -batchmode -nographics -releaseCodeOptimization -logFile warmup/editor.log -projectPath {{ project.path }} -quit
4244
# Stop any build processes that outlive the warm-up editor, then list what is left so the job log shows it.
4345
- dotnet build-server shutdown || true
4446
- pkill -f Unity.ILPP.Runner || true

0 commit comments

Comments
 (0)