Skip to content

Commit f22e537

Browse files
ci(audience): drop self-hosted Linux activation, rely on cached license (SDK-255)
The runner is pre-activated and the Unity license file persists on disk. Re-activating in the workflow tried to consume a fresh seat each run and hit the serial's seat-pool ceiling. Removes the Activate Unity license and Return Unity license steps from the playmode-linux-selfhosted job. Unity picks up the cached license file when launched without -username/-password/-serial. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent d4f9aed commit f22e537

1 file changed

Lines changed: 0 additions & 35 deletions

File tree

.github/workflows/test-audience-sample-app.yml

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -608,30 +608,6 @@ jobs:
608608
fi
609609
echo "UNITY_PATH=$UNITY" >> "$GITHUB_ENV"
610610
611-
- name: Activate Unity license
612-
shell: bash
613-
env:
614-
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
615-
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
616-
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
617-
run: |
618-
set -uo pipefail
619-
LOG="$(mktemp)"
620-
"$UNITY_PATH" -batchmode -nographics -quit \
621-
-username "$UNITY_EMAIL" \
622-
-password "$UNITY_PASSWORD" \
623-
-serial "$UNITY_SERIAL" \
624-
-logFile - 2>&1 | tee "$LOG" || true
625-
626-
if grep -qE "(License activation has failed|\[Licensing::Client\] Error: Code [0-9]+)" "$LOG"; then
627-
echo "::error::Unity activation failed."
628-
exit 1
629-
fi
630-
if ! grep -qE "Successfully activated the entitlement license" "$LOG"; then
631-
echo "::error::Unity activation: no success marker found."
632-
exit 1
633-
fi
634-
635611
- name: Run PlayMode tests
636612
shell: bash
637613
env:
@@ -648,17 +624,6 @@ jobs:
648624
-testResults "$(pwd)/artifacts/test-results.xml" \
649625
-logFile - 2>&1 | tee "$(pwd)/artifacts/unity.log"
650626
651-
- name: Return Unity license
652-
if: always()
653-
shell: bash
654-
run: |
655-
set -uo pipefail
656-
# Releases the seat after every run so manual reruns do not exhaust
657-
# the serial's activation pool.
658-
if [ -n "${UNITY_PATH:-}" ] && [ -x "$UNITY_PATH" ]; then
659-
"$UNITY_PATH" -returnlicense -batchmode -nographics -quit -logFile - 2>&1 || true
660-
fi
661-
662627
- name: Publish test report
663628
uses: dorny/test-reporter@v3
664629
if: always()

0 commit comments

Comments
 (0)