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 <vincent.fu@samsung.com>
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
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: |
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: |