Skip to content

Commit 346dfb5

Browse files
authored
Merge pull request #223 from AkihiroSuda/vm
CI: add openSUSE Tumbleweed
2 parents 5615da5 + b2b2fb4 commit 346dfb5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/validate.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)