From c97ba2d51d7c57574552fe62c9df814735c41f38 Mon Sep 17 00:00:00 2001 From: michalChrobot Date: Mon, 31 Mar 2025 15:37:36 +0200 Subject: [PATCH 1/2] Disabled WebGL Build job for macOS --- .yamato/webgl-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.yamato/webgl-build.yml b/.yamato/webgl-build.yml index 33fac79782..60e762c5a1 100644 --- a/.yamato/webgl-build.yml +++ b/.yamato/webgl-build.yml @@ -25,6 +25,7 @@ {% for project in projects.default -%} {% for platform in test_platforms.desktop -%} +{% if platform.name != "mac" -%} # There is an error about "Light baking could not be started because no valid OpenCL device could be found". Tracked in MTT-11726 {% for editor in validation_editors.all -%} webgl_build_{{ project.name }}_{{ platform.name }}_{{ editor }}: name: WebGl Build - {{ project.name }} [{{ platform.name }}, {{ editor }}, il2cpp] @@ -37,7 +38,7 @@ webgl_build_{{ project.name }}_{{ platform.name }}_{{ editor }}: {% endif %} commands: - unity-downloader-cli --fast --wait -u {{ editor }} -c Editor -c webgl -c il2cpp {% if platform.name == "mac" %} --arch arm64 {% endif %} # For macOS we use ARM64 models. Downloading the editor with additional webgl and il2cpp components - + # The following step builds the player with defined options such as: # Suite parameter if defined since it's a mandatory field to define which test suite should be used, but it doesn't matter in this case since we won't run any tests (--suite) # Editor is run in batchmode, which means that Unity runs command line arguments without the need for human interaction. It also suppresses pop-up windows that require human interaction (such as the Save Scene window). We should always run Unity in batch mode when using command line arguments, because it allows automation to run without interruption. (--extra-editor-arg=-batchmode) @@ -51,5 +52,6 @@ webgl_build_{{ project.name }}_{{ platform.name }}_{{ editor }}: - "artifacts/**/*" - "build/players/**/*" {% endfor -%} +{% endif -%} {% endfor -%} {% endfor -%} From f0b3d80eb2802839582cb105318844f9063eb8a6 Mon Sep 17 00:00:00 2001 From: michalChrobot Date: Mon, 31 Mar 2025 15:41:40 +0200 Subject: [PATCH 2/2] Corrected runAll file to account for the change --- .yamato/_run-all.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.yamato/_run-all.yml b/.yamato/_run-all.yml index 372152bb19..84e4a491fb 100644 --- a/.yamato/_run-all.yml +++ b/.yamato/_run-all.yml @@ -102,9 +102,11 @@ run_all_webgl_builds: dependencies: {% for project in projects.default -%} {% for platform in test_platforms.desktop -%} +{% if platform.name != "mac" -%} # There is an error about "Light baking could not be started because no valid OpenCL device could be found". Tracked in MTT-11726 {% for editor in validation_editors.all -%} - .yamato/webgl-build.yml#webgl_build_{{ project.name }}_{{ platform.name }}_{{ editor }} {% endfor -%} +{% endif -%} {% endfor -%} {% endfor -%} @@ -115,9 +117,11 @@ run_all_webgl_builds_trunk: dependencies: {% for project in projects.default -%} {% for platform in test_platforms.desktop -%} +{% if platform.name != "mac" -%} # There is an error about "Light baking could not be started because no valid OpenCL device could be found". Tracked in MTT-11726 {% for editor in validation_editors.default -%} - .yamato/webgl-build.yml#webgl_build_{{ project.name }}_{{ platform.name }}_{{ editor }} {% endfor -%} +{% endif -%} {% endfor -%} {% endfor -%} @@ -127,7 +131,9 @@ run_all_webgl_builds_2021: dependencies: {% for project in projects.default -%} {% for platform in test_platforms.desktop -%} +{% if platform.name != "mac" -%} # There is an error about "Light baking could not be started because no valid OpenCL device could be found". Tracked in MTT-11726 - .yamato/webgl-build.yml#webgl_build_{{ project.name }}_{{ platform.name }}_2021.3 +{% endif -%} {% endfor -%} {% endfor -%}