Skip to content

Commit 1255e20

Browse files
rkt0209tillkamppeter
authored andcommitted
ci: add APT retries to fix transient mirror sync failures
1 parent b7c15c8 commit 1255e20

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ jobs:
4545
- name: Install build dependencies (native)
4646
if: matrix.use-qemu == false
4747
run: |
48-
sudo apt-get update
48+
# Add retries to prevent transient Ubuntu mirror sync failures
49+
sudo apt-get clean
50+
sudo apt-get update -o Acquire::Retries=3
4951
# Remove conflicting system packages
5052
sudo apt-get remove -y libcupsfilters-dev libppd-dev || true
5153
# Install comprehensive OpenPrinting dependency stack
@@ -128,7 +130,10 @@ jobs:
128130
dockerRunArgs: |
129131
--volume "${{ github.workspace }}:/workspace"
130132
install: |
131-
apt-get update
133+
# Add retries to prevent transient Ubuntu mirror sync failures
134+
apt-get clean
135+
apt-get update -o Acquire::Retries=3
136+
132137
DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
133138
# Remove conflicting system packages
134139
apt-get remove -y libcupsfilters-dev libppd-dev 2>/dev/null || true

0 commit comments

Comments
 (0)