Skip to content

Commit

Permalink
github: check with KVM support
Browse files Browse the repository at this point in the history
KVM is supported on "larger Linux runners" ...

  https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners/

... which is the default runner for public GitHub repos since January:

  https://github.blog/2024-01-17-github-hosted-runners-double-the-power-for-open-source/

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
  • Loading branch information
matttbe committed May 3, 2024
1 parent 69418b7 commit b5b0c22
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,13 @@ jobs:

# Run `uname -r` using a vanilla v6.6 kernel
- run: ./vng -r v6.6 -- uname -r

# Setup KVM support
- name: "KVM support"
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
# Re-run with KVM support
- run: ./vng -r v6.6 -- cat /sys/devices/system/clocksource/clocksource0/current_clocksource

0 comments on commit b5b0c22

Please sign in to comment.