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 <[email protected]>
---
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

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to