summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Fedoryshchenko <denys.f@collabora.com>2024-08-18 15:38:08 +0300
committerGitHub <noreply@github.com>2024-08-18 15:38:08 +0300
commit0eb54934a8746091a5f3eef2ae0db726975c24da (patch)
tree0b1853c144074291875b03a08f18d5e805079833
parentf2a5479adc20167d4084737a3be77033c61985f4 (diff)
parentf6913522d870456de4858da5241bf3cff03f0904 (diff)
downloadaccel-ppp-0eb54934a8746091a5f3eef2ae0db726975c24da.tar.gz
accel-ppp-0eb54934a8746091a5f3eef2ae0db726975c24da.zip
Merge pull request #174 from svlobanov/ci-speedup
ci: speedup virtual machines using kvm and host cpu passthrough
-rw-r--r--.github/workflows/run-tests.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml
index 3f8016a8..30a1e04a 100644
--- a/.github/workflows/run-tests.yml
+++ b/.github/workflows/run-tests.yml
@@ -56,8 +56,8 @@ jobs:
run: >
sudo apt update &&
NEEDRESTART_SUSPEND=1 DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true sudo -E apt -y install qemu-system-x86 qemu-utils cloud-image-utils cpu-checker cloud-image-utils wget openssh-client screen
- - name: Check kvm support (fail is ok)
- run: sudo kvm-ok || exit 0
+ - name: Check kvm support
+ run: sudo kvm-ok
- name: Prepare cloud-init image disk
run: |
ssh-keygen -t ed25519 -q -N "" -f ssh-key
@@ -91,9 +91,9 @@ jobs:
wget -nv ${{ matrix.image }} -O img/image
qemu-img resize -f ${{ matrix.format }} img/`ls -1 img` +2G
- name: Run target OS first time (for cloud-init actions)
- run: sudo qemu-system-x86_64 -m 4096 -nographic -drive format=${{ matrix.format }},file=img/`ls -1 img` -drive format=raw,file=init.img
+ run: sudo qemu-system-x86_64 -enable-kvm -cpu host -m 4096 -nographic -drive format=${{ matrix.format }},file=img/`ls -1 img` -drive format=raw,file=init.img
- name: Run target OS
- run: sudo screen -dmS qemu qemu-system-x86_64 -net nic -net user,hostfwd=tcp::2222-:22 -m 4096 -nographic -drive format=${{ matrix.format }},file=img/`ls -1 img`
+ run: sudo screen -dmS qemu qemu-system-x86_64 -enable-kvm -cpu host -net nic -net user,hostfwd=tcp::2222-:22 -m 4096 -nographic -drive format=${{ matrix.format }},file=img/`ls -1 img`
- name: Check that target OS is running
run: |
sleep 1