feat: extract archive source switch script for EOL Debian builds

Create switch_archive_sources.sh that rewrites /etc/apt/sources.list
from deb.debian.org to archive.debian.org (with backports) for EOL
Debian releases (buster, bullseye).  Both docker/Dockerfile.deps and
the CI install-test step use this script instead of inline fallback
logic.

Also record the pullsrc-on-host strategy in AGENTS.md.
This commit is contained in:
boypt
2026-09-01 09:16:19 +08:00
parent ba154124c6
commit beb09df438
4 changed files with 47 additions and 1 deletions

View File

@@ -56,7 +56,10 @@ jobs:
- name: Install test with ${{ matrix.version }}
run: |
docker run --rm -v ${{ github.workspace }}:/work -w /work library/${{ matrix.version }} bash -c "apt update && apt install -y --no-install-recommends ./output/*.deb && ssh -V"
docker run --rm -v ${{ github.workspace }}:/work -w /work library/${{ matrix.version }} bash -c "
bash /work/switch_archive_sources.sh &&
apt update -qq >/dev/null 2>&1 &&
apt install -y --no-install-recommends ./output/*.deb && ssh -V"
- name: Pack .deb files into tar.gz
id: pack