ci: stabilize standalone Unity host

This commit is contained in:
2026-08-26 06:36:37 +08:00
parent a2d2b8da7d
commit b6807389e6
+5
View File
@@ -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" \