diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5c7dba1..f6558a79 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,6 +44,10 @@ jobs: matrix: target: [x86_64, aarch64, riscv64] os: [ubuntu-latest, macos-latest, windows-latest] + include: + - target: x86_64 + os: ubuntu-latest + flags: --accel --sudo runs-on: ${{ matrix.os }} steps: - name: Install QEMU (ubuntu) @@ -85,27 +89,27 @@ jobs: cp /usr/share/OVMF/OVMF_VARS.fd edk2-stable202408-r1-bin/x64/vars.fd if: matrix.os == 'ubuntu-latest' - name: Run VM (hello_world, dev) - run: cargo xtask ci qemu --target ${{ matrix.target }} + run: cargo xtask ci qemu ${{ matrix.flags }} --target ${{ matrix.target }} - name: Run VM (hello_world, release) - run: cargo xtask ci qemu --target ${{ matrix.target }} --release + run: cargo xtask ci qemu ${{ matrix.flags }} --target ${{ matrix.target }} --release - name: Run VM (hello_world, uefi, dev) - run: cargo xtask ci qemu --target ${{ matrix.target }}-uefi + run: cargo xtask ci qemu ${{ matrix.flags }} --target ${{ matrix.target }}-uefi if: matrix.target == 'x86_64' - name: Run VM (hello_world, uefi, release) - run: cargo xtask ci qemu --target ${{ matrix.target }}-uefi --release + run: cargo xtask ci qemu ${{ matrix.flags }} --target ${{ matrix.target }}-uefi --release if: matrix.target == 'x86_64' - name: Run VM (hello_world-microvm, dev) if: matrix.target == 'x86_64' && matrix.os == 'ubuntu-latest' - run: cargo xtask ci qemu --target ${{ matrix.target }} --microvm + run: cargo xtask ci qemu ${{ matrix.flags }} --target ${{ matrix.target }} --microvm - name: Run VM (hello_world-microvm, release) if: matrix.target == 'x86_64' && matrix.os == 'ubuntu-latest' - run: cargo xtask ci qemu --target ${{ matrix.target }} --microvm --release + run: cargo xtask ci qemu ${{ matrix.flags }} --target ${{ matrix.target }} --microvm --release - name: Run VM (hello_c, dev) if: matrix.target == 'x86_64' - run: cargo xtask ci qemu --target ${{ matrix.target }} --image hello_c + run: cargo xtask ci qemu ${{ matrix.flags }} --target ${{ matrix.target }} --image hello_c - name: Run VM (hello_c, release) if: matrix.target == 'x86_64' - run: cargo xtask ci qemu --target ${{ matrix.target }} --image hello_c --release + run: cargo xtask ci qemu ${{ matrix.flags }} --target ${{ matrix.target }} --image hello_c --release run-kvm: name: Run (KVM)