]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
GitHub: Call apt-get update before install (#733)
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>
Sun, 29 Nov 2020 13:14:18 +0000 (15:14 +0200)
committerGitHub <noreply@github.com>
Sun, 29 Nov 2020 13:14:18 +0000 (14:14 +0100)
Without update, apt tries to download outdated packages, which possibly
don't exist.

.github/workflows/build.yaml

index 705f1a7cf2ac507126e8a591de8195441779fd96..6e0aa9db11d38e36f3f5117a550329efbd33b7e1 100644 (file)
@@ -261,7 +261,7 @@ jobs:
 
       - name: Run apt-get
         if: matrix.config.apt_get != ''
-        run: sudo apt-get install ${{ matrix.config.apt_get }}
+        run: sudo apt-get update && sudo apt-get install ${{ matrix.config.apt_get }}
 
       - name: Build and test
         env:
@@ -314,7 +314,7 @@ jobs:
         uses: actions/checkout@v2
 
       - name: Install codespell
-        run: sudo apt-get install codespell
+        run: sudo apt-get update && sudo apt-get install codespell
 
       - name: Run codespell
         run: codespell -q 7 -S ".git,LICENSE.adoc,./src/third_party/*" -I misc/codespell-allowlist.txt