From 40b91f77f91129faa665a5aff9b8334b51637003 Mon Sep 17 00:00:00 2001 From: cneicy Date: Wed, 26 Aug 2026 05:29:31 +0800 Subject: [PATCH] fix(ci): report Unity license mount state --- .gitea/workflows/workspace-validate.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitea/workflows/workspace-validate.yml b/.gitea/workflows/workspace-validate.yml index eb283b8..d3b1664 100644 --- a/.gitea/workflows/workspace-validate.yml +++ b/.gitea/workflows/workspace-validate.yml @@ -39,6 +39,16 @@ jobs: shell: bash run: | set -euo pipefail + ulf_file="/root/.local/share/unity3d/Unity/Unity_lic.ulf" + entitlement_file="/root/.config/unity3d/Unity/licenses/UnityEntitlementLicense.xml" + if test -s "$ulf_file"; then + echo "Unity license mount: ULF present" + elif test -s "$entitlement_file"; then + echo "Unity license mount: entitlement present" + else + echo "No Unity license file is available through the configured mounts." >&2 + exit 1 + fi unity_bin="$(command -v unity-editor || command -v unity || command -v Unity || true)" test -n "$unity_bin" mkdir -p Artifacts