ci: Update libseccomp version and remove other packages.
GitHub default runners now use Ubuntu 22.04, so we need to update libseccomp
version for this distribution.
Also, As we no more compile eBPF code in the CI, we do not need libbpf-dev and
llvm.
@@ -2,12 +2,9 @@ name: "Install debian packages"
description: "Install debian packages needed by inspektor-gadget"
inputs:
- libbpf-version:
- description: "Version of the libbpf to install."
- default: "1:0.5.0-1~ubuntu20.04.1"
libseccomp-version:
description: "Version of the libseccomp to install."
- default: "2.5.1-1ubuntu1~20.04.2"
+ default: "2.5.3-2ubuntu2"
runs:
using: "composite"
@@ -18,19 +15,17 @@ runs:
with:
path: "~/cache-debs"
# Update cache key if you add or update a package.
- key: v3
+ key: v4
- name: Install debian packages
shell: bash
run: |
if [[ "${{steps.cache-debs.outputs.cache-hit}}" == 'true' ]]; then
sudo cp --verbose --force --recursive ~/cache-debs/* /
else
- sudo apt install -y software-properties-common llvm
- sudo add-apt-repository -y ppa:tuxinvader/kernel-build-tools
sudo apt-get update
- sudo apt install -y libbpf-dev="${{inputs.libbpf-version}}" libseccomp-dev="${{inputs.libseccomp-version}}"
+ sudo apt-get install -y libseccomp-dev="${{inputs.libseccomp-version}}"
mkdir -p ~/cache-debs
- sudo dpkg -L libbpf-dev libseccomp-dev llvm | \
+ sudo dpkg -L libseccomp-dev | \
while IFS= read -r f; do \
if test -f $f; then echo $f; fi; \
done | xargs cp --parents --target-directory ~/cache-debs/
