Skip to content

Commit

Permalink
CI: Enable KVM
Browse files Browse the repository at this point in the history
Apparently GitHub decided to finally allow KVM. Use it.
  • Loading branch information
holesch committed Nov 28, 2023
1 parent 3870374 commit 06e8766
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
sudo apt-get update
sudo apt-get install qemu-system
pip install .[test]
- name: Allow kvm usage
run: sudo chmod o+rw /dev/kvm || :
- name: Run tests
run: pytest -s
release:
Expand Down
2 changes: 1 addition & 1 deletion scripts/vmctl
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ qemu_exec() {
# use "Standard PC"
set -- "$@" -machine q35

if [ -e /dev/kvm ]; then
if [ -w /dev/kvm ]; then
# use host CPU model
set -- "$@" -cpu host
# use kvm acceleration
Expand Down

0 comments on commit 06e8766

Please sign in to comment.