]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CI: Add apt update command before installing dependencies.
authorJia Tan <jiat0218@gmail.com>
Tue, 6 Jun 2023 16:18:30 +0000 (00:18 +0800)
committerJia Tan <jiat0218@gmail.com>
Tue, 6 Jun 2023 16:23:02 +0000 (00:23 +0800)
Without the extra command, all of the CI tests were automatically
failing because the Ubuntu servers could not be reached properly.

.github/workflows/ci.yml

index 397a48d1878064fcd847d5383973053dac19dd20..f08becb97cfaa9e32bba46cd33de2833bb9e79cf 100644 (file)
@@ -36,7 +36,9 @@ jobs:
       # Install Autotools on Linux
       - name: Install Dependencies
         if: ${{ matrix.os == 'ubuntu-latest' && matrix.build_system == 'autotools' }}
-        run: sudo apt-get install -y autoconf automake build-essential po4a autopoint gcc-multilib doxygen
+        run: |
+            sudo apt-get update
+            sudo apt-get install -y autoconf automake build-essential po4a autopoint gcc-multilib doxygen
 
       # Install Autotools on Mac
       - name: Install Dependencies
@@ -46,7 +48,9 @@ jobs:
       # Install CMake on Linux
       - name: Install Dependencies
         if: ${{ matrix.os == 'ubuntu-latest' && matrix.build_system == 'cmake' }}
-        run: sudo apt-get install -y build-essential cmake
+        run: |
+            sudo apt-get update
+            sudo apt-get install -y build-essential cmake
 
       # Install CMake on Mac
       - name: Install Dependencies