From 9829a1728b47f13f4ee3b3ed9340a1a9295f4496 Mon Sep 17 00:00:00 2001 From: dailz Date: Fri, 3 Jul 2026 13:55:46 +0800 Subject: [PATCH] ci(gitea): retry apt setup --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48b6624..5255d07 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,13 +44,14 @@ jobs: - name: Install system dependencies run: | - sudo apt-get update + APT_OPTS=(-o Acquire::Retries=5 -o Acquire::http::Timeout=30 -o Acquire::https::Timeout=30) + sudo apt-get "${APT_OPTS[@]}" update --error-on=any # NOTE: do NOT use --no-install-recommends for libclang-dev — on # Debian Bookworm (the node:20-bookworm image used by act_runner # under ubuntu-latest) the recommended toolchain bits are needed # by bindgen. The pkg-config based deps (pipewire/wayland/etc) # are also more reliable without the flag. - sudo apt-get install -y \ + sudo apt-get "${APT_OPTS[@]}" install -y \ ffmpeg \ libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev libswscale-dev libva-dev \ libwayland-dev wayland-protocols \