fix(ci): run apt non-interactively so needrestart can't hang a runner
Build / macOS (macos-latest) (pull_request) Successful in 45s
Build / Linux (ubuntu-24.04) (push) Successful in 1m3s
Build / Linux (ubuntu-24.04) (pull_request) Successful in 1m27s
Build / macOS (macos-latest) (push) Successful in 43s
Build / Windows (windows-latest) (pull_request) Successful in 4m10s
Build / Windows (windows-latest) (push) Successful in 4m6s
Build / macOS (macos-latest) (pull_request) Successful in 45s
Build / Linux (ubuntu-24.04) (push) Successful in 1m3s
Build / Linux (ubuntu-24.04) (pull_request) Successful in 1m27s
Build / macOS (macos-latest) (push) Successful in 43s
Build / Windows (windows-latest) (pull_request) Successful in 4m10s
Build / Windows (windows-latest) (push) Successful in 4m6s
The v0.1.2 Linux release job sat for 15+ minutes on a self-hosted Debian runner: after apt-get install, needrestart prompted for which daemons to restart and waited on a terminal CI does not have. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -41,7 +41,8 @@ jobs:
|
||||
# zip is not guaranteed present on a minimal self-hosted runner
|
||||
# image (unlike GitHub-hosted ubuntu-24.04, which build.yml's
|
||||
# deps script doesn't need to care about).
|
||||
command -v zip >/dev/null || sudo apt-get install -y -qq zip
|
||||
# Non-interactive for the same reason as .gitea/scripts/linux-deps.sh.
|
||||
command -v zip >/dev/null || sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get install -y -qq zip
|
||||
out="streamer-tools-camera-${GITEA_REF_NAME}-linux-x64.zip"
|
||||
root="$(pwd)"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user