Skip to content

Commit bd24ca2

Browse files
authored
Partial revert of #4 (#6)
Signed-off-by: Mark Rossetti <marosset@microsoft.com>
1 parent f03f6bb commit bd24ca2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

action.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,16 @@ runs:
146146
- name: Set up env vars (Linux)
147147
if: ${{ (runner.os == 'Linux') }}
148148
run: |
149-
if [ -e /dev/kvm ]; then
150-
sudo adduser $(whoami) kvm
149+
set -x
150+
if command -v dnf > /dev/null 2>&1; then
151+
echo "Detected mariner / hyperv"
152+
ls -al /dev/mshv
153+
whoami
154+
else
155+
echo "Detected Ubuntu / kvm"
156+
sudo ls -al /dev/kvm
157+
sudo chgrp $(whoami) /dev/kvm
158+
sudo ls -al /dev/kvm
151159
fi
152160
echo "RUST_BACKTRACE=full" >> $GITHUB_ENV
153161
shell: bash

0 commit comments

Comments
 (0)