From 0a9af6144d8ac0e999e3008689878d8c4db15629 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Thu, 24 Oct 2024 13:58:26 +0530 Subject: [PATCH] ci : Install virtiofsd only when runner os is Ubuntu 24.04 (#395) Signed-off-by: Rohan Kumar --- .github/workflows/e2e-crc-okd-tests.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e-crc-okd-tests.yml b/.github/workflows/e2e-crc-okd-tests.yml index 735cdad7..0facdab1 100644 --- a/.github/workflows/e2e-crc-okd-tests.yml +++ b/.github/workflows/e2e-crc-okd-tests.yml @@ -66,7 +66,9 @@ jobs: - name: Install required virtualization software run: | sudo apt-get update - sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system virtiofsd + sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system + # This package may not be present depending on Ubuntu version + sudo apt install virtiofsd || true sudo usermod -a -G libvirt $USER - name: Remove unwanted stuff to free up disk image run: | @@ -75,6 +77,19 @@ jobs: sudo rm -rf /opt/ghc sudo rm -rf "/usr/local/share/boost" sudo rm -rf /opt/hostedtoolcache/CodeQL + sudo rm -rf \ + /opt/google/chrome \ + /opt/microsoft/msedge \ + /opt/microsoft/powershell \ + /opt/pipx \ + /usr/lib/mono \ + /usr/local/julia* \ + /usr/local/lib/android \ + /usr/local/lib/node_modules \ + /usr/local/share/chromium \ + /usr/local/share/powershell \ + /usr/share/dotnet \ + /usr/share/swift sudo docker image prune --all --force