Skip to content

Commit bd437d0

Browse files
committed
sudo-less sudo on self-hosted machines
1 parent 8bc297d commit bd437d0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/CommonCI.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@ jobs:
162162
- name: Install earlyoom
163163
if: ${{ runner.os == 'Linux' }}
164164
run: |
165-
sudo apt-get install -y earlyoom
165+
SUDO="sudo"
166+
if [[ ${{ startsWith(inputs.os, 'linux-') }} == 'true' ]]; then
167+
SUDO=""
168+
fi
169+
${SUDO} apt-get install -y earlyoom
166170
- name: "Run Tests (PJRT)"
167171
if: ${{ inputs.runtime == 'pjrt' || inputs.runtime == 'both' }}
168172
timeout-minutes: 120

0 commit comments

Comments
 (0)