Skip to content

Commit 0a9af61

Browse files
authored
ci : Install virtiofsd only when runner os is Ubuntu 24.04 (#395)
Signed-off-by: Rohan Kumar <[email protected]>
1 parent fc48814 commit 0a9af61

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/e2e-crc-okd-tests.yml

+16-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ jobs:
6666
- name: Install required virtualization software
6767
run: |
6868
sudo apt-get update
69-
sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system virtiofsd
69+
sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system
70+
# This package may not be present depending on Ubuntu version
71+
sudo apt install virtiofsd || true
7072
sudo usermod -a -G libvirt $USER
7173
- name: Remove unwanted stuff to free up disk image
7274
run: |
@@ -75,6 +77,19 @@ jobs:
7577
sudo rm -rf /opt/ghc
7678
sudo rm -rf "/usr/local/share/boost"
7779
sudo rm -rf /opt/hostedtoolcache/CodeQL
80+
sudo rm -rf \
81+
/opt/google/chrome \
82+
/opt/microsoft/msedge \
83+
/opt/microsoft/powershell \
84+
/opt/pipx \
85+
/usr/lib/mono \
86+
/usr/local/julia* \
87+
/usr/local/lib/android \
88+
/usr/local/lib/node_modules \
89+
/usr/local/share/chromium \
90+
/usr/local/share/powershell \
91+
/usr/share/dotnet \
92+
/usr/share/swift
7893
7994
sudo docker image prune --all --force
8095

0 commit comments

Comments
 (0)