From 11ca5c53d49e35ea67ef93b72e1fdc30a888bcf1 Mon Sep 17 00:00:00 2001 From: cneicy Date: Wed, 26 Aug 2026 06:36:34 +0800 Subject: [PATCH] ci: stabilize standalone Unity host --- .gitea/workflows/unity-verify.yml | 5 +++++ Development~/UnityProject/Packages/manifest.json | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/unity-verify.yml b/.gitea/workflows/unity-verify.yml index a671f0d..5bb7dd4 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" \ diff --git a/Development~/UnityProject/Packages/manifest.json b/Development~/UnityProject/Packages/manifest.json index 44255e2..92c1bb4 100644 --- a/Development~/UnityProject/Packages/manifest.json +++ b/Development~/UnityProject/Packages/manifest.json @@ -10,6 +10,7 @@ ], "dependencies": { "com.unity.test-framework": "1.1.33", - "com.cneicy.shrink-datasaver-integration-eventbus": "file:../../.." + "com.cneicy.shrink-datasaver-integration-eventbus": "file:../../..", + "com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask#7c0f199fe0d3fc528024488ccd671e6c7b27745b" } }