From 9454e4bcffe3fd3b0b7f44da4d6dfd4b12951054 Mon Sep 17 00:00:00 2001 From: Todd Anderson Date: Wed, 6 Mar 2024 16:11:17 -0600 Subject: [PATCH] ci: adds hardware acceleration for linux runners --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3c54fab8..04cc1ed6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,6 +22,13 @@ jobs: runs-on: ubuntu-latest steps: + # This enables hardware acceleration on large linux runners + - name: Enable KVM group perms + 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 + - uses: actions/checkout@v4 - uses: ./.github/actions/ci with: