fix(ci): restore Unity machine identity
Validate ShrinkSDK Workspace / unity (push) Failing after 15s
Validate ShrinkSDK Workspace / unity (push) Failing after 15s
This commit is contained in:
@@ -40,6 +40,7 @@ jobs:
|
||||
run: |
|
||||
set -euo pipefail
|
||||
ulf_file="/root/.local/share/unity3d/Unity/Unity_lic.ulf"
|
||||
machine_id_file="/root/.local/share/unity3d/Unity/.machine-id"
|
||||
entitlement_file="/root/.config/unity3d/Unity/licenses/UnityEntitlementLicense.xml"
|
||||
if test -s "$ulf_file"; then
|
||||
echo "Unity license mount: ULF present"
|
||||
@@ -49,6 +50,10 @@ jobs:
|
||||
echo "No Unity license file is available through the configured mounts." >&2
|
||||
exit 1
|
||||
fi
|
||||
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"
|
||||
mkdir -p Artifacts
|
||||
|
||||
Reference in New Issue
Block a user