ci: run workflows on the self-hosted runner
This commit is contained in:
parent
34bf8d1afb
commit
2936799982
3 changed files with 24 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue