CI: align Multi-Arch versions when ports.ubuntu.com lags behind
All checks were successful
release / release (push) Successful in 14m0s

The arm64 mirror had an older libpcre2 than the amd64 one already in the
runner image; Multi-Arch: same packages need one version on both, so apt
refused. tools/ci-apt.sh pins the packages apt names (and their siblings
from the same source) to the arm64 version on both architectures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tamas Csikel
2026-11-03 18:19:20 +01:00
parent 84cfeff00a
commit 5a76e56fe1
2 changed files with 44 additions and 7 deletions

View File

@@ -53,13 +53,9 @@ jobs:
$libs $(for l in $libs; do printf '%s:arm64 ' "$l"; done)
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
libgstreamer1.0-0:arm64 libgstreamer-plugins-base1.0-0:arm64"
if ! apt-get install -y --no-install-recommends $pkgs >/tmp/apt.log 2>&1; then
# Show why (usually a Multi-Arch package whose amd64 and arm64
# versions differ while ports.ubuntu.com lags behind).
sed -n '/following packages have unmet/,$p' /tmp/apt.log | head -60
tail -20 /tmp/apt.log
exit 1
fi
# tools/ci-apt.sh: when ports.ubuntu.com lags behind, it aligns the
# Multi-Arch libraries on both architectures to the arm64 version.
sh "$W/src/tools/ci-apt.sh" $pkgs
rm -rf /var/lib/apt/lists/*
curl -sSf https://sh.rustup.rs | sh -s -- -y -q --profile minimal --no-modify-path --target aarch64-unknown-linux-gnu
"$CARGO_HOME/bin/cargo" install -q --locked --git "$SDK_GIT" --tag "$SDK_TAG" sf-pack