From f07810094af439e1b73f018944833b1af3ea8bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AE=80=E9=9D=99=E5=87=A1?= <30424139+wtto00@users.noreply.github.com> Date: Sat, 23 Sep 2023 01:55:05 +0800 Subject: [PATCH] chore: ci ubuntu --- .github/workflows/test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c0aeec2..fc4e3b6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,7 +31,7 @@ jobs: # runs-on: macos-latest Test: - runs-on: ubuntu-latest + runs-on: ubuntu-latest-4-cores needs: Lint strategy: matrix: @@ -39,6 +39,12 @@ jobs: env: GITHUB_CI: true steps: + - 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 + - name: Checkout Code uses: actions/checkout@v3