[Skiboot] [PATCH] github: Run update before installing packages

Joel Stanley joel at jms.id.au
Wed Mar 16 23:32:23 AEDT 2022


The Github CI runners sometimes need to update their apt cache, or
packages fail to install:

 E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/gcc-9-cross/gcc-9-powerpc64le-linux-gnu_9.3.0-17ubuntu1~20.04cross2_amd64.deb  404  Not Found [IP: 40.81.13.82 80]
 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
 Error: Process completed with exit code 100.

Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 .github/workflows/build-docs.yml | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/build-docs.yml b/.github/workflows/build-docs.yml
index 242f2002e5cc..aab47f7dca8e 100644
--- a/.github/workflows/build-docs.yml
+++ b/.github/workflows/build-docs.yml
@@ -15,11 +15,10 @@ jobs:
         uses: actions/checkout at v2
 
       - name: Install apt dependencies
-        run: |
-          sudo apt install -qq build-essential gcc-powerpc64le-linux-gnu git lcov \
-          device-tree-compiler libssl-dev libmbedtls-dev \
-          python3-sphinx python3-recommonmark
-
+        run: sudo apt-get update &&
+          sudo apt-get install -qq build-essential gcc-powerpc64le-linux-gnu git lcov
+          device-tree-compiler libssl-dev libmbedtls-dev python3-sphinx
+          python3-recommonmark
       - name: Generate docs and coverage report
         run: ./opal-ci/build-docs.sh
 
-- 
2.35.1



More information about the Skiboot mailing list