From b6807389e6b6da1bafa68fd8d1f70a8537fab6cd Mon Sep 17 00:00:00 2001 From: cneicy Date: Wed, 26 Aug 2026 06:36:37 +0800 Subject: [PATCH] ci: stabilize standalone Unity host --- .gitea/workflows/unity-verify.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/unity-verify.yml b/.gitea/workflows/unity-verify.yml index 3270236..6c5108e 100644 --- a/.gitea/workflows/unity-verify.yml +++ b/.gitea/workflows/unity-verify.yml @@ -26,6 +26,11 @@ jobs: shell: bash run: | set -eu + machine_id_file="/root/.local/share/unity3d/Unity/.machine-id" + if test -s "$machine_id_file"; then + cat "$machine_id_file" > /etc/machine-id + echo "Unity machine identity restored" + fi unity_bin="$(command -v unity-editor || command -v unity || command -v Unity || true)" test -n "$unity_bin" "$unity_bin" \