[ovs-dev] [PATCH] github: fix Ubuntu package installation

David Marchand david.marchand at redhat.com
Sat Dec 19 08:40:30 UTC 2020


Before trying to install a package, APT cache must be updated to avoid
asking for an unavailable version of a package.

Fixes: 6cb2f5a630e3 ("github: Add GitHub Actions workflow.")

Signed-off-by: David Marchand <david.marchand at redhat.com>
---
I noticed this issue on DPDK side and I can see jobs for the OVS master
branch are affected too:
https://github.com/openvswitch/ovs/runs/1580144616?check_suite_focus=true#step:8:209

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

diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml
index c830661383..b29c300c55 100644
--- a/.github/workflows/build-and-test.yml
+++ b/.github/workflows/build-and-test.yml
@@ -133,6 +133,8 @@ jobs:
         path: dpdk-dir
         key:  ${{ env.matrix_key }}-${{ env.ci_key }}
 
+    - name: update APT cache
+      run:  sudo apt update
     - name: install common dependencies
       if:   matrix.deb_package == ''
       run:  sudo apt install -y ${{ env.dependencies }}
-- 
2.23.0



More information about the dev mailing list