Skip to content

Commit

Permalink
workflows: add apt-get update before installs
Browse files Browse the repository at this point in the history
Some workflows started to fail because the cache was invalid: some
package was updated and it was still trying to install the previous one,
then missing.

Signed-off-by: Mahe Tardy <[email protected]>
  • Loading branch information
mtardy committed Jan 12, 2024
1 parent 1a84735 commit 86dfea2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/bpf-unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
go-version: '1.21.5'

- name: Install LLVM
run: sudo apt-get -y install clang llvm
run: |
sudo apt-get update
sudo apt-get -y install clang llvm
- name: Run BPF unit test
run: make bpf-test BPFGOTESTFLAGS="-v"
2 changes: 2 additions & 0 deletions .github/workflows/gotests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ jobs:

- name: Install dependencies x86
run: |
sudo apt-get update
sudo apt-get -y install libc6-dev-i386
if: ${{ matrix.os == 'ubuntu-20.04' }}

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get -y install libelf-dev netcat-traditional libcap-dev gcc
sudo sed -i '/secure_path/d' /etc/sudoers
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/vmtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ jobs:

- name: Install build dependencies
run: |
sudo apt install libelf-dev netcat-traditional libcap-dev gcc libc6-dev-i386
sudo apt-get update
sudo apt-get install -y libelf-dev netcat-traditional libcap-dev gcc libc6-dev-i386
echo `which clang`
echo `which llc`
echo `clang --version`
Expand Down Expand Up @@ -89,9 +90,9 @@ jobs:
steps:
- name: Install VM test dependencies
run: |
sudo apt-get -qy update
sudo apt-get update
sudo apt-cache search qemu
sudo apt-get -qy install mmdebstrap libguestfs-tools qemu-utils qemu-system-x86 cpu-checker qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virtinst virt-manager
sudo apt-get install -y mmdebstrap libguestfs-tools qemu-utils qemu-system-x86 cpu-checker qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virtinst virt-manager
- name: Make kernel accessible
run: |
Expand Down

0 comments on commit 86dfea2

Please sign in to comment.