fix(ci): retry apt-get update and skip recommended packages

Two more sources of CI noise/fragility alongside the debconf frontend
fix: fish's install pulls in man-db/groff-base/xsel as recommends,
triggering a slow mandb rebuild for tooling nothing here uses;
--no-install-recommends skips that. apt-get update had no retry
policy, so a transient blip against the PPA mirror failed the whole
job; -o Acquire::Retries=3 gives it a few chances first.
This commit is contained in:
2026-08-21 00:54:54 -04:00
parent f7598e5e23
commit c4e225b007
+8 -8
View File
@@ -29,11 +29,11 @@ jobs:
- name: Install fish
run: |
sudo apt-get update -qq
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common
sudo apt-get -o Acquire::Retries=3 update -qq
sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y software-properties-common
sudo add-apt-repository -y ppa:fish-shell/release-4
sudo apt-get update -qq
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y fish
sudo apt-get -o Acquire::Retries=3 update -qq
sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y fish
- name: Run fish config tests
run: fish tests/run-tests.fish
@@ -49,11 +49,11 @@ jobs:
- name: Install dependencies
run: |
sudo apt-get update -qq
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common
sudo apt-get -o Acquire::Retries=3 update -qq
sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y software-properties-common
sudo add-apt-repository -y ppa:fish-shell/release-4
sudo apt-get update -qq
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y pandoc python3-yaml fish
sudo apt-get -o Acquire::Retries=3 update -qq
sudo DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y pandoc python3-yaml fish
- name: Generate concatenated markdown
run: python3 docs/build-manual.py --concat -o docs/fish-config.md