Skip to content

Commit 02fcc52

Browse files
committed
test if wsl will work if just commands use sudo...
1 parent 6dc1e25 commit 02fcc52

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/dep_rust.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,16 @@ jobs:
9999
env:
100100
CARGO_TERM_COLOR: always
101101
run: |
102+
if [ "${{ matrix.hypervisor }}" = "wsl" ]; then
103+
SUDO="sudo"
104+
else
105+
SUDO=""
106+
fi
102107
# with default features
103-
just test ${{ matrix.config }} ${{ matrix.hypervisor == 'mshv3' && 'mshv3' || ''}}
108+
$SUDO just test ${{ matrix.config }} ${{ matrix.hypervisor == 'mshv3' && 'mshv3' || ''}}
104109
105110
# with only one driver enabled (driver mshv/kvm feature is ignored on windows) + seccomp + inprocess
106-
just test ${{ matrix.config }} inprocess,seccomp,${{ matrix.hypervisor == 'mshv' && 'mshv2' || matrix.hypervisor == 'mshv3' && 'mshv3' || 'kvm' }}
111+
$SUDO just test ${{ matrix.config }} inprocess,seccomp,${{ matrix.hypervisor == 'mshv' && 'mshv2' || matrix.hypervisor == 'mshv3' && 'mshv3' || 'kvm' }}
107112
108113
# make sure certain cargo features compile
109114
cargo check -p hyperlight-host --features crashdump

0 commit comments

Comments
 (0)