Skip to contentSkip to conversation

ci: fix package installation in GitHub Actions

PATCH Applied David Marchand 3 participants 5 messages Dec 19, 2020 – Jan 5, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ci: fix package installation in GitHub Actions

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

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

---
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(+)
.github/workflows/build.yml +2 -0
index 05eb59527f..0b72df0ebe 100644
@@ -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
Signature · 1 line
2.23.0
author Applied
#1 lore raw
Quoted 7 lines · David Marchand

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

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

Applied.

Signature · 1 line
David Marchand
#2 lore raw

Hello David,
I’m hitting this issue on the next/dpdk-next-net branch. Is there a way to pull the patch into all of the next-* branches so that others don’t hit it too?

For now I've pulled it into my own branch.

This Actions thing is cool. It’s a huge timesaver.

Thank you,
Andrew

Quoted 18 lines · David Marchand
Quoted 7 lines · David Marchand

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

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

Applied.

Signature · 1 line
David Marchand
#3 lore raw
Quoted 3 lines · Andrew Boyer

Hello David,
I’m hitting this issue on the next/dpdk-next-net branch. Is there a way to pull the patch into all of the next-* branches so that others don’t hit it too?

next-net rebased on the main repo to include the commit, fyi.

For the next trees, you can find their maintainers in the MAINTAINERS file.

Quoted 26 lines

For now I've pulled it into my own branch.

This Actions thing is cool. It’s a huge timesaver.

Thank you,
Andrew

Quoted 18 lines · David Marchand
Quoted 7 lines · David Marchand

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

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

Applied.

Signature · 1 line
David Marchand
#4 lore raw
In reply to Andrew Boyer

Hello Andrew,

Quoted 3 lines · Andrew Boyer

Hello David,
I’m hitting this issue on the next/dpdk-next-net branch. Is there a way to pull the patch into all of the next-* branches so that others don’t hit it too?

Sorry, I was offline, next-* branches are maintained by others (as explained by Ferruh).

Quoted 4 lines

For now I've pulled it into my own branch.

This Actions thing is cool. It’s a huge timesaver.

Happy to read that it helps.

Signature · 1 line
David Marchand