File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,7 @@ jobs:
100100 - template://almalinux-8
101101 - template://centos-stream-9
102102 - template://fedora
103+ - template://experimental/opensuse-tumbleweed
103104 runs-on : ubuntu-24.04
104105 steps :
105106 - uses : actions/checkout@v4
@@ -124,7 +125,14 @@ jobs:
124125 # Sync the current directory to /tmp/selinux in the guest
125126 limactl cp -r . default:/tmp/selinux
126127 # Install packages
127- lima sudo dnf install --setopt=install_weak_deps=false --setopt=tsflags=nodocs -y git-core make golang
128+ if lima command -v dnf >/dev/null; then
129+ lima sudo dnf install --setopt=install_weak_deps=false --setopt=tsflags=nodocs -y git-core make golang
130+ elif lima command -v zypper >/dev/null; then
131+ lima sudo zypper install -y git make go
132+ else
133+ echo >&2 "Unsupported distribution"
134+ exit 1
135+ fi
128136
129137 - name : " make test"
130138 run : lima make -C /tmp/selinux test
You can’t perform that action at this time.
0 commit comments