]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
ci: add APT retries to fix transient mirror sync failures master
authorRohit Kumar <rohitdhankhar7347@gmail.com>
Mon, 9 Mar 2026 13:37:25 +0000 (19:07 +0530)
committerTill Kamppeter <till.kamppeter@gmail.com>
Mon, 9 Mar 2026 17:25:25 +0000 (18:25 +0100)
.github/workflows/build.yml

index 43ff7aae8742e004e282a40172cbf374237419be..28ea5247a25a102c24f7057651d42df0f74f10c0 100644 (file)
@@ -45,7 +45,9 @@ jobs:
       - name: Install build dependencies (native)
         if: matrix.use-qemu == false
         run: |
       - name: Install build dependencies (native)
         if: matrix.use-qemu == false
         run: |
-          sudo apt-get update
+          # Add retries to prevent transient Ubuntu mirror sync failures
+          sudo apt-get clean
+          sudo apt-get update -o Acquire::Retries=3
           # Remove conflicting system packages
           sudo apt-get remove -y libcupsfilters-dev libppd-dev || true
           # Install comprehensive OpenPrinting dependency stack
           # Remove conflicting system packages
           sudo apt-get remove -y libcupsfilters-dev libppd-dev || true
           # Install comprehensive OpenPrinting dependency stack
@@ -128,7 +130,10 @@ jobs:
           dockerRunArgs: |
             --volume "${{ github.workspace }}:/workspace"
           install: |
           dockerRunArgs: |
             --volume "${{ github.workspace }}:/workspace"
           install: |
-            apt-get update
+            # Add retries to prevent transient Ubuntu mirror sync failures
+            apt-get clean
+            apt-get update -o Acquire::Retries=3
+            
             DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
             # Remove conflicting system packages
             apt-get remove -y libcupsfilters-dev libppd-dev 2>/dev/null || true
             DEBIAN_FRONTEND=noninteractive apt-get install -y tzdata
             # Remove conflicting system packages
             apt-get remove -y libcupsfilters-dev libppd-dev 2>/dev/null || true