Skip to content

Commit

Permalink
ci: always update apt cache before installing pkgs
Browse files Browse the repository at this point in the history
For all of our custom local actions make sure we update the apt cache
before trying to install packages. This will prevent errors when the
runner is started with a stale apt cache.

Example: https://github.com/vincentkfu/fio/actions/runs/11339008514/job/31533113877

Signed-off-by: Vincent Fu <[email protected]>
  • Loading branch information
vincentkfu committed Oct 15, 2024
1 parent cd56c0a commit 86fc77a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-qemu/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ runs:
using: "composite"
steps:
- name: Install QEMU build dependencies
run: sudo apt-get -qq install libglib2.0-dev libfdt-dev libpixman-1-dev ninja-build flex bison libsdl2-dev libaio-dev python3-tomli libslirp-dev
run: sudo apt update && sudo apt-get -qq install libglib2.0-dev libfdt-dev libpixman-1-dev ninja-build flex bison libsdl2-dev libaio-dev python3-tomli libslirp-dev
shell: bash

- name: Build and install QEMU
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/create-guest-image/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ runs:
using: "composite"
steps:
- name: Install libguestfs
run: sudo apt-get -qq install libguestfs-tools
run: sudo apt update && sudo apt-get -qq install libguestfs-tools
shell: bash
- name: Setup steps for virt-builder
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/start-vm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ runs:
steps:
- name: install wait-for-it
shell: bash
run: sudo apt-get -qq install wait-for-it
run: sudo apt update && sudo apt-get -qq install wait-for-it
- name: Start VM in background
shell: bash
run: |
Expand Down

0 comments on commit 86fc77a

Please sign in to comment.