Skip to content

Commit 4e28f0f

Browse files
committed
try to be more robust against short hickups in the Ubuntu Ports mirrors
1 parent d8b01c7 commit 4e28f0f

File tree

1 file changed

+4
-1
lines changed
  • src/tools/miri/.github/workflows

1 file changed

+4
-1
lines changed

src/tools/miri/.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ jobs:
7373
sudo bash -c "echo 'https://ports.ubuntu.com/ priority:4' >> /etc/apt/apt-mirrors.txt"
7474
# Add architecture
7575
sudo dpkg --add-architecture ${{ matrix.multiarch }}
76-
sudo apt update
76+
# Ubuntu Ports often has outdated mirrors so try a few times to get the apt repo
77+
for TRY in $(seq 3); do
78+
{ sudo apt update && break; } || sleep 30
79+
done
7780
# Install needed packages
7881
sudo apt install $(echo "libatomic1: zlib1g-dev:" | sed 's/:/:${{ matrix.multiarch }}/g')
7982
- uses: ./.github/workflows/setup

0 commit comments

Comments
 (0)