Skip to content

Commit

Permalink
Also run tests on self-hosted kvm runner
Browse files Browse the repository at this point in the history
kvm is the recommended backend for fakemachine; Unfortunately github
hosted runners don't support virtualization. Luckily the debos
organisation now has a kvm supported self-hosted runner sponsored by
Collabora

Signed-off-by: Sjoerd Simons <[email protected]>
  • Loading branch information
sjoerdsimons committed Dec 29, 2023
1 parent 04d7865 commit bb13dc6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ jobs:
#
# For Arch Linux uml is not yet supported, so only test under qemu there.
os: [bullseye, bookworm, trixie]
backend: [qemu, uml]
backend: [qemu, uml, kvm]
include:
- os: arch
backend: qemu
backend: "qemu"
- os: arch
backend: "kvm"
name: Test ${{matrix.os}} with ${{matrix.backend}} backend
runs-on: ubuntu-latest
runs-on: ${{ matrix.backend == 'kvm' && 'kvm' || 'ubuntu-latest' }}
defaults:
run:
shell: bash
Expand All @@ -64,6 +66,7 @@ jobs:
--security-opt label=disable
--cap-add=SYS_PTRACE
--tmpfs /scratch:exec
${{ matrix.backend == 'kvm' && '--device /dev/kvm' || '' }}
env:
TMP: /scratch
steps:
Expand Down

0 comments on commit bb13dc6

Please sign in to comment.