Skip to content

Commit f936dfa

Browse files
committed
CI: packages: enable testing with QEMU
Add additional job to enable testing with QEMU using the new reusable_test-image workflow. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
1 parent 0caf7ac commit f936dfa

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/packages.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,38 @@ jobs:
4444
build_all_kmods: true
4545
build_all_modules: true
4646
build_full: true
47+
upload_images: true
4748
ccache_type: packages
4849
upload_ccache_cache: ${{ github.repository_owner == 'openwrt' }}
4950
check_packages_list: ${{ needs.determine_changed_packages.outputs.changed_packages }}
5051

52+
test:
53+
name: Test with QEMU
54+
needs: build
55+
strategy:
56+
fail-fast: False
57+
matrix:
58+
include:
59+
- target: malta
60+
subtarget: be
61+
image: openwrt-malta-be-vmlinux-initramfs.elf
62+
use_qemu: true
63+
qemu_target: mips
64+
- target: x86
65+
subtarget: 64
66+
image: openwrt-x86-64-generic-squashfs-combined.img
67+
use_qemu: true
68+
qemu_target: x86
69+
qemu_bin: x86_64
70+
uses: ./.github/workflows/reusable_test-image.yml
71+
with:
72+
target: ${{ matrix.target }}
73+
subtarget: ${{ matrix.subtarget }}
74+
image: ${{ matrix.image }}
75+
use_qemu: ${{ matrix.use_qemu }}
76+
qemu_target: ${{ matrix.qemu_target }}
77+
qemu_bin: ${{ matrix.qemu_bin || '' }}
78+
5179
upload-ccache-cache-in-s3:
5280
if: github.event_name == 'push' && github.repository_owner == 'openwrt'
5381
name: Upload ccache cache to s3

0 commit comments

Comments
 (0)