From 61b7c4da738ff34cc6d5f460c03c9cf396906d15 Mon Sep 17 00:00:00 2001 From: cneicy Date: Wed, 26 Aug 2026 06:36:38 +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 35b3ab1..99432d8 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" \