Files
obs-streamer-tools-plugin/.gitea/scripts/linux-deps.sh
T
shadowdaoandClaude Opus 5.5 a3344c249b
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
fix(ci): run apt non-interactively so needrestart can't hang a runner
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>
2026-10-04 18:49:25 -07:00

16 lines
791 B
Bash
Executable File

#!/usr/bin/env bash
# Shared with .gitea/workflows/build.yml and .gitea/workflows/release.yml --
# both need the exact same Linux build dependencies. Edit once, here.
set -euo pipefail
# 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