ci: fix package installation in GitHub Actions
authorDavid Marchand <david.marchand@redhat.com>
Sat, 19 Dec 2020 08:05:33 +0000 (09:05 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Sat, 19 Dec 2020 08:21:25 +0000 (09:21 +0100)
APT cache must be updated to avoid trying to install an unavailable
version of a package.

Fixes: 87009585e293 ("ci: hook to GitHub Actions")

Signed-off-by: David Marchand <david.marchand@redhat.com>
.github/workflows/build.yml

index 05eb595..0b72df0 100644 (file)
@@ -87,6 +87,8 @@ jobs:
       with:
         path: reference
         key: ${{ steps.get_ref_keys.outputs.abi }}
+    - name: Update APT cache
+      run: sudo apt update
     - name: Install packages
       run: sudo apt install -y ccache libnuma-dev python3-setuptools
         python3-wheel python3-pip ninja-build libbsd-dev libpcap-dev