Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,16 @@ runs:
- name: Set up env vars (Linux)
if: ${{ (runner.os == 'Linux') }}
run: |
if [ -e /dev/kvm ]; then
sudo adduser $(whoami) kvm
set -x
if command -v dnf > /dev/null 2>&1; then
echo "Detected mariner / hyperv"
ls -al /dev/mshv
whoami
else
echo "Detected Ubuntu / kvm"
sudo ls -al /dev/kvm
sudo chgrp $(whoami) /dev/kvm
sudo ls -al /dev/kvm
fi
echo "RUST_BACKTRACE=full" >> $GITHUB_ENV
shell: bash
Expand Down