Match instance runner label; probe environment on first run
Build RPi image / build (push) Failing after 12s

This commit is contained in:
druppy committed 2026-10-24 17:58:43 +02:00
1 parent 25dd8e1f28
commit 439b5c53a8
1 file changed
+17 -4
+17 -4
View File
@@ -3,10 +3,15 @@ name: Build RPi image
# Yocto (kas) build of rpilinux-image for raspberrypi4-64. # Yocto (kas) build of rpilinux-image for raspberrypi4-64.
# #
# Runner requirements (see chat/notes): # Runner requirements (see chat/notes):
# - label "yocto:host" (host job: Yocto needs ~250GB persistent disk, # - matches the instance runner's "ubuntu-latest" label (bare label = job
# container jobs are not suitable) # runs on the runner's machine, i.e. a host job). Yocto needs ~250GB
# persistent disk, so the runner must actually be a machine (or a
# container with a big persistent volume), not a throwaway sandbox.
# - ~250GB free in $HOME, plus the poky host dependencies + node # - ~250GB free in $HOME, plus the poky host dependencies + node
# - runner.timeout >= 8h for the first build (runner default is 3h) # - runner.timeout >= 8h for the first build (runner default is 3h)
#
# Upgrade path: register a dedicated runner with label "yocto:host" and
# change runs-on below to "yocto".
on: on:
push: push:
@@ -23,13 +28,21 @@ permissions:
jobs: jobs:
build: build:
runs-on: yocto runs-on: ubuntu-latest
timeout-minutes: 600 timeout-minutes: 600
steps: steps:
- uses: builtin:checkout - uses: builtin:checkout
- name: Probe host dependencies - name: Probe environment and host dependencies
run: | run: |
echo "=== runner environment ==="
uname -a
[ -r /etc/os-release ] && . /etc/os-release && echo "$PRETTY_NAME"
echo "HOME=$HOME nproc=$(nproc)"
df -h "$HOME" | tail -1
free -h 2>/dev/null | sed -n 2p || true
command -v docker >/dev/null && docker info --format 'docker: {{.ServerVersion}}' 2>/dev/null || echo "no docker daemon"
echo "=== dependency check ==="
set -e set -e
missing="" missing=""
for t in git python3 curl wget rsync gawk xz diffstat chrpath node npm; do for t in git python3 curl wget rsync gawk xz diffstat chrpath node npm; do