ci: run workflows on the self-hosted runner

This commit is contained in:
Loki 2026-11-01 15:55:25 +01:00
parent 34bf8d1afb
commit 2936799982
Signed by: boba
GPG key ID: 253067914055423B
3 changed files with 24 additions and 5 deletions

View file

@ -15,12 +15,17 @@ env:
jobs:
check:
runs-on: ubuntu-latest
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Install system dependencies
run: |
# Self-hosted host: install packages only if we may; otherwise assume they are preinstalled.
if [ "$(id -u)" != 0 ] && ! sudo -n true 2>/dev/null; then
echo "::warning::no root/passwordless sudo on the runner, skipping apt (dependencies must be preinstalled)"
exit 0
fi
SUDO=$(command -v sudo || true)
export DEBIAN_FRONTEND=noninteractive
$SUDO apt-get update