Skip to content

Commit 6f31288

Browse files
ci(audience): drop linux git-lfs and unity hub install steps (SDK-340)
- Removes "Ensure git and git-lfs (Linux, idempotent)" pre-checkout step. - Removes "Install Unity Hub (Linux, idempotent)" step. - Both tools now provisioned on the imx-sdkbuild Linux runner host, matching how macOS and Windows self-hosted runners are set up. - Avoids the unityhub package's interactive debconf prompt that hung cell 1 for 20 min before the runner killed it. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2a1a970 commit 6f31288

1 file changed

Lines changed: 0 additions & 40 deletions

File tree

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

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -136,26 +136,6 @@ jobs:
136136
}
137137
Write-Host "::warning::Workspace not fully cleaned; checkout may fail"
138138
139-
- name: Ensure git and git-lfs (Linux, idempotent)
140-
if: runner.os == 'Linux'
141-
shell: bash
142-
run: |
143-
# actions/checkout@v4 below uses lfs: true, which needs both git
144-
# and git-lfs on PATH. Self-hosted Linux runners may not have
145-
# git-lfs preinstalled, so install on demand. Idempotent: skip
146-
# whichever is already present. Requires passwordless sudo for
147-
# the runner user, same assumption as the Unity Hub install.
148-
set -uo pipefail
149-
needs=()
150-
command -v git >/dev/null 2>&1 || needs+=(git)
151-
command -v git-lfs >/dev/null 2>&1 || needs+=(git-lfs)
152-
if [ ${#needs[@]} -gt 0 ]; then
153-
sudo apt-get update -qq
154-
sudo apt-get install -y --no-install-recommends "${needs[@]}"
155-
fi
156-
git --version
157-
git-lfs --version
158-
159139
- uses: actions/checkout@v4
160140
with:
161141
lfs: true
@@ -326,26 +306,6 @@ jobs:
326306
if ('${{ matrix.backend }}' -eq 'IL2CPP') { Write-Host "Found IL2CPP: $il2cpp" }
327307
"UNITY_PATH=$editor" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8
328308
329-
- name: Install Unity Hub (Linux, idempotent)
330-
if: runner.os == 'Linux'
331-
shell: bash
332-
run: |
333-
# Install per https://docs.unity.com/en-us/hub/install-hub-linux.
334-
# Idempotent: skip if already present so subsequent runs cost
335-
# nothing. Requires passwordless sudo for the runner user.
336-
set -uo pipefail
337-
if [ -x /opt/unityhub/unityhub ]; then
338-
echo "Unity Hub already installed."
339-
exit 0
340-
fi
341-
sudo install -d -m 0755 /etc/apt/keyrings
342-
wget -qO- https://hub.unity3d.com/linux/keys/public \
343-
| sudo gpg --dearmor --yes -o /etc/apt/keyrings/Unity_Technologies_ApS.gpg
344-
echo "deb [signed-by=/etc/apt/keyrings/Unity_Technologies_ApS.gpg] https://hub.unity3d.com/linux/repos/deb stable main" \
345-
| sudo tee /etc/apt/sources.list.d/unityhub.list >/dev/null
346-
sudo apt-get update -qq
347-
sudo apt-get install -y --no-install-recommends unityhub
348-
349309
- name: Resolve Unity ${{ matrix.unity }} (Linux)
350310
if: runner.os == 'Linux'
351311
shell: bash

0 commit comments

Comments
 (0)