ci: stabilize standalone Unity host

This commit is contained in:
2026-08-26 06:36:34 +08:00
parent 81ab5c09cb
commit c39314acbc
2 changed files with 7 additions and 1 deletions
+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" \
@@ -10,6 +10,7 @@
],
"dependencies": {
"com.unity.test-framework": "1.1.33",
"com.cneicy.shrink-datasaver": "file:../../.."
"com.cneicy.shrink-datasaver": "file:../../..",
"com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask#7c0f199fe0d3fc528024488ccd671e6c7b27745b"
}
}