Isolate Linux cross-build dependencies.

This commit is contained in:
Hermes Agent
2026-08-14 11:53:36 +00:00
parent 7fa37ddf6e
commit 87d2cc2a1f
2 changed files with 16 additions and 0 deletions

View File

@@ -42,6 +42,11 @@ case "$target" in
'/^Architectures:/d; /^Types: deb$/a Architectures: arm64' \
"$native_sources"
# The full runner image includes these Architecture: all Python tools.
# They are unrelated to the build, but make apt replace native Python
# while resolving foreign-architecture development packages.
sudo env DEBIAN_FRONTEND=noninteractive apt-get remove -y mercurial python3-importlib-metadata python3-jwt
sudo dpkg --add-architecture amd64
{
printf '%s\n' \