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:
@@ -3,5 +3,13 @@
|
||||
# both need the exact same Linux build dependencies. Edit once, here.
|
||||
set -euo pipefail
|
||||
|
||||
sudo apt-get update -qq
|
||||
sudo apt-get install -y -qq cmake ninja-build libobs-dev libcurl4-openssl-dev
|
||||
# Non-interactive, or a self-hosted Debian runner hangs forever: after an
|
||||
# install, needrestart asks which daemons to restart ("1. postfix.service
|
||||
# 2. none of the above") and waits on a terminal CI does not have. That
|
||||
# stalled the v0.1.2 Linux release job on 2026-10-05. NEEDRESTART_MODE=a
|
||||
# answers it; DEBIAN_FRONTEND covers debconf prompts. Passed through sudo
|
||||
# explicitly, since sudo drops the caller's environment by default.
|
||||
APT=(sudo DEBIAN_FRONTEND=noninteractive NEEDRESTART_MODE=a apt-get)
|
||||
|
||||
"${APT[@]}" update -qq
|
||||
"${APT[@]}" install -y -qq cmake ninja-build libobs-dev libcurl4-openssl-dev
|
||||
|
||||
Reference in New Issue
Block a user