Skip to content

Commit 5dd95dd

Browse files
committed
enable kvm on linux
Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
1 parent 76bfe6a commit 5dd95dd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222
- uses: actions/checkout@v4
2323
- uses: actions-rust-lang/setup-rust-toolchain@v1
2424
- uses: Swatinem/rust-cache@v2
25+
- name: Enable kvm
26+
if: runner.os == 'Linux'
27+
run: |
28+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
29+
sudo udevadm control --reload-rules
30+
sudo udevadm trigger --name-match=kvm
2531
- name: Install cargo-hyperlight
2632
shell: bash
2733
run: cargo install cargo-hyperlight --path .

0 commit comments

Comments
 (0)