]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Add official Ubuntu mirror list as fallback for Actions caching proxy
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Mon, 6 Feb 2023 14:36:15 +0000 (15:36 +0100)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 8 Feb 2023 11:26:54 +0000 (12:26 +0100)
.github/workflows/analyze.yml
.github/workflows/cmake.yml
.github/workflows/configure.yml
.github/workflows/pigz.yml
.github/workflows/pkgcheck.yml

index 3a38edd93f8cd4bb4016cf22acd72e4962dd214e..17333d244c266c0c2d097a88939ec962ead5c936 100644 (file)
@@ -8,6 +8,13 @@ jobs:
     - name: Checkout repository
       uses: actions/checkout@v3
 
+    - name: Add ubuntu mirrors
+      run: |
+        # Github Actions caching proxy is at times unreliable
+        echo -e 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | sudo tee /etc/apt/mirrors.txt
+        curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt
+        sudo sed -i 's#http://azure.archive.ubuntu.com/ubuntu/#mirror+file:/etc/apt/mirrors.txt#' /etc/apt/sources.list
+
     - name: Install packages (Ubuntu)
       run: sudo apt-get install -y gcc-10
 
index 1d0eeeb246dbaea238701fc3bb44eeb718fb7029..102cef08a0c13c9f053f10c1da5baa5fc67e1ddb 100644 (file)
@@ -460,6 +460,14 @@ jobs:
       if: contains(matrix.packages, 'wine')
       run: sudo dpkg --add-architecture i386
 
+    - name: Add ubuntu mirrors
+      if: runner.os == 'Linux' && matrix.packages
+      run: |
+        # Github Actions caching proxy is at times unreliable
+        echo -e 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | sudo tee /etc/apt/mirrors.txt
+        curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt
+        sudo sed -i 's#http://azure.archive.ubuntu.com/ubuntu/#mirror+file:/etc/apt/mirrors.txt#' /etc/apt/sources.list
+
     - name: Install packages (Ubuntu)
       if: runner.os == 'Linux' && matrix.packages
       run: |
index e0dde6f9be5936f978c09e4a6ffcf8c8ca4251bd..51861533e00f4527373af36510b7c6848c914f41 100644 (file)
@@ -188,6 +188,14 @@ jobs:
     - name: Checkout repository
       uses: actions/checkout@v3
 
+    - name: Add ubuntu mirrors
+      if: runner.os == 'Linux' && matrix.packages
+      run: |
+        # Github Actions caching proxy is at times unreliable
+        echo -e 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | sudo tee /etc/apt/mirrors.txt
+        curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt
+        sudo sed -i 's#http://azure.archive.ubuntu.com/ubuntu/#mirror+file:/etc/apt/mirrors.txt#' /etc/apt/sources.list
+
     - name: Install packages (Ubuntu)
       if: runner.os == 'Linux' && matrix.packages
       run: |
index 6a505a119e792d459c0ca95af3c0b4b03485ab8c..e90cb63ab27ca080ff4cc8da406bce9ae6c46c46 100644 (file)
@@ -59,6 +59,14 @@ jobs:
         repository: zlib-ng/corpora
         path: test/data/corpora
 
+    - name: Add ubuntu mirrors
+      if: runner.os == 'Linux' && matrix.packages
+      run: |
+        # Github Actions caching proxy is at times unreliable
+        echo -e 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | sudo tee /etc/apt/mirrors.txt
+        curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt
+        sudo sed -i 's#http://azure.archive.ubuntu.com/ubuntu/#mirror+file:/etc/apt/mirrors.txt#' /etc/apt/sources.list
+
     - name: Install packages (Ubuntu)
       if: runner.os == 'Linux' && matrix.packages
       run: |
index 0bb97fd843e43e97ec017260cbc889c7292f9e02..8888cf37e0e4babbae56fb29b6c9e941d1a7ba1e 100644 (file)
@@ -78,6 +78,14 @@ jobs:
     - name: Checkout repository
       uses: actions/checkout@v3
 
+    - name: Add ubuntu mirrors
+      if: runner.os == 'Linux' && matrix.packages
+      run: |
+        # Github Actions caching proxy is at times unreliable
+        echo -e 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | sudo tee /etc/apt/mirrors.txt
+        curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append /etc/apt/mirrors.txt
+        sudo sed -i 's#http://azure.archive.ubuntu.com/ubuntu/#mirror+file:/etc/apt/mirrors.txt#' /etc/apt/sources.list
+
     - name: Install packages (Ubuntu)
       if: runner.os == 'Linux'
       run: |