Просмотр исходного кода

pipeline: disable kvm during the test

Nested virtualization is somehow not working...

Disable kvm acceleration for now.

Signed-off-by: greatbridf <greatbridf@icloud.com>
greatbridf 6 месяцев назад
Родитель
Сommit
9a207f58ec
1 измененных файлов с 7 добавлено и 2 удалено
  1. 7 2
      .github/workflows/test-build.yaml

+ 7 - 2
.github/workflows/test-build.yaml

@@ -29,7 +29,8 @@ jobs:
         run: rustup component add rust-src llvm-tools
         run: rustup component add rust-src llvm-tools
 
 
       - name: Setup QEMU
       - name: Setup QEMU
-        run: sudo apt-get install -y qemu-system-${{ matrix.arch }}
+        run: |
+          sudo apt-get install -y qemu-system-${{ matrix.arch }} qemu-kvm
 
 
       - name: Configure
       - name: Configure
         run: ./configure
         run: ./configure
@@ -48,9 +49,13 @@ jobs:
             build/boot-${{ matrix.arch }}.img.zst
             build/boot-${{ matrix.arch }}.img.zst
 
 
       - name: Test run for ${{ matrix.arch }}
       - name: Test run for ${{ matrix.arch }}
-        run: sh script/test.sh
+        run: |
+          echo "Fixing permissions for /dev/kvm..."
+          sudo adduser $USER kvm
+          sh script/test.sh
         env:
         env:
           ARCH: ${{ matrix.arch }}
           ARCH: ${{ matrix.arch }}
+          QEMU_ACCEL: ''
         timeout-minutes: 2
         timeout-minutes: 2
         continue-on-error: true
         continue-on-error: true