2
0
mirror of https://github.com/boostorg/move.git synced 2026-01-19 04:22:10 +00:00

Make apt update more robust adding sleeps betwen retries

This commit is contained in:
Ion Gaztañaga
2025-12-13 16:59:00 +01:00
parent 3f149a911c
commit 906766d9d7

View File

@@ -441,7 +441,9 @@ jobs:
echo "GHA_CONTAINER=${{matrix.container}}" >> $GITHUB_ENV
if [ -f "/etc/debian_version" ]
then
apt-get -o Acquire::Retries=$NET_RETRY_COUNT update
for i in $(seq 1 $NET_RETRY_COUNT); do
apt-get update && break || sleep 5
done
if [ "$(apt-cache search "^python-is-python3$" | wc -l)" -ne 0 ]
then
PYTHON_PACKAGE="python-is-python3"
@@ -507,7 +509,9 @@ jobs:
done
done
fi
sudo apt-get -o Acquire::Retries=$NET_RETRY_COUNT update
for i in $(seq 1 $NET_RETRY_COUNT); do
apt-get update && break || sleep 5
done
sudo apt-get -o Acquire::Retries=$NET_RETRY_COUNT install -y ${{join(matrix.install, ' ')}}
- name: Setup GCC Toolchain