[dpdk-dev] [PATCH] ci: fix package installation in GitHub Actions

David Marchand david.marchand at redhat.com
Sat Dec 19 09:26:10 CET 2020


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 at redhat.com>
---
I did not find a way for the update to be done by GHA itself,
so adding an explicit step.

The robot hits this issue on all 32-bits builds at the moment.
I will apply this quickly.

---
 .github/workflows/build.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 05eb59527f..0b72df0ebe 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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
-- 
2.23.0



More information about the dev mailing list