Skip to content

Commit 58a1a38

Browse files
committed
[CI] Extend workload with multiple QEMU configurations
1 parent 2e97bba commit 58a1a38

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.github/workflows/qemu.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,20 @@ jobs:
1313
qemu-build:
1414
name: Qemu
1515
runs-on: ubuntu-22.04
16-
16+
strategy:
17+
matrix:
18+
config: ['default',
19+
'clx_2_var1_hmat',
20+
'clx_2_var2_hmat',
21+
'clx_2_var3_hmat',
22+
'clx_4_var1_hmat',
23+
'clx_4_var2_hmat']
24+
# TODO: Add following
25+
#'clx_2_var1'
26+
#'clx_2_var2'
27+
#'clx_2_var3'
28+
#'clx_4_var1'
29+
#'clx_4_var2'
1730
steps:
1831
- name: Checkout
1932
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
@@ -72,7 +85,7 @@ jobs:
7285
run: qemu-img resize ./ubuntu-23.04-server-cloudimg-amd64.img +4G
7386
- name: Print qemu args
7487
run: |
75-
echo `python3 scripts/qemu/qemu_config.py scripts/qemu/configs/default.xml | sed s/''\''/'/g`
88+
echo `python3 scripts/qemu/qemu_config.py scripts/qemu/configs/${{matrix.config}}.xml | sed s/''\''/'/g`
7689
- name: Run qemu
7790
run: |
7891
sudo qemu-system-x86_64 \
@@ -81,7 +94,7 @@ jobs:
8194
-machine q35,usb=off,hmat=on \
8295
-enable-kvm \
8396
-net nic -net user,hostfwd=tcp::2222-:22 \
84-
$(echo `python3 scripts/qemu/qemu_config.py scripts/qemu/configs/default.xml | sed s/''\''/'/g`) \
97+
$(echo `python3 scripts/qemu/qemu_config.py scripts/qemu/configs/${{matrix.config}}.xml | sed s/''\''/'/g`) \
8598
-daemonize -display none
8699
- name: Run ssh keyscan
87100
run: |

scripts/qemu/run-build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ cmake .. \
3434

3535
make -j $(nproc)
3636

37+
echo password | sudo sync;
38+
echo password | sudo sh -c "/usr/bin/echo 3 > /proc/sys/vm/drop_caches"
39+
3740
ctest --output-on-failure
3841

3942
# run tests bound to a numa node

0 commit comments

Comments
 (0)