Skip to content

Commit 86fc77a

Browse files
committed
ci: always update apt cache before installing pkgs
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]>
1 parent cd56c0a commit 86fc77a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/actions/build-qemu/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ runs:
1212
using: "composite"
1313
steps:
1414
- name: Install QEMU build dependencies
15-
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
15+
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
1616
shell: bash
1717

1818
- name: Build and install QEMU

.github/actions/create-guest-image/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ runs:
1515
using: "composite"
1616
steps:
1717
- name: Install libguestfs
18-
run: sudo apt-get -qq install libguestfs-tools
18+
run: sudo apt update && sudo apt-get -qq install libguestfs-tools
1919
shell: bash
2020
- name: Setup steps for virt-builder
2121
run: |

.github/actions/start-vm/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ runs:
2424
steps:
2525
- name: install wait-for-it
2626
shell: bash
27-
run: sudo apt-get -qq install wait-for-it
27+
run: sudo apt update && sudo apt-get -qq install wait-for-it
2828
- name: Start VM in background
2929
shell: bash
3030
run: |

0 commit comments

Comments
 (0)