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

View file

@ -12,7 +12,7 @@ env:
# NO cache; `publish` holds the signing key and only handles built artifacts.
jobs:
build:
runs-on: ubuntu-latest
runs-on: self-hosted
env:
TAG: ${{ gitea.ref_name }}
steps:
@ -44,6 +44,11 @@ jobs:
- 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
@ -108,7 +113,7 @@ jobs:
publish:
needs: build
runs-on: ubuntu-latest
runs-on: self-hosted
env:
MIN_VERSION: ${{ vars.VNOX_MIN_VERSION }}
TAG: ${{ gitea.ref_name }}
@ -130,6 +135,11 @@ jobs:
- name: Install signing 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)
$SUDO apt-get update
$SUDO apt-get install -y --no-install-recommends python3 python3-cryptography