From 3ef9b91b48014bcb54671349e818dcb17a8895d5 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Fri, 25 Jul 2025 07:18:59 +0200 Subject: [PATCH] ci: add qemu tests to devices.json Signed-off-by: Paul Spooren --- .github/workflows/snapshots.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/snapshots.yml b/.github/workflows/snapshots.yml index d89e20765..3fdbbcf08 100644 --- a/.github/workflows/snapshots.yml +++ b/.github/workflows/snapshots.yml @@ -215,7 +215,7 @@ jobs: uses: actions/upload-artifact@v4 if: always() with: - name: report-${{ matrix.target }} + name: results-qemu_${{ matrix.target }} path: ${{ matrix.target }}/* - name: Upload allure results @@ -250,6 +250,29 @@ jobs: cp openwrt-tests/contrib/index.html page/index.html echo '${{ needs.generate-matrix.outputs.matrix }}' > page/devices.json + # Add QEMU targets to devices.json + qemu_targets='[ + { + "device": "qemu_malta-be", + "name": "QEMU Malta BE", + "target": "malta-be", + "firmware": "vmlinux-initramfs.elf" + }, + { + "device": "qemu_x86-64", + "name": "QEMU x86-64", + "target": "x86-64", + "firmware": "generic-squashfs-combined.img.gz" + }, + { + "device": "qemu_armsr-armv8", + "name": "QEMU ARMsr ARMv8", + "target": "armsr-armv8", + "firmware": "generic-initramfs-kernel.bin" + } + ]' + echo "$(jq ". + $qemu_targets" page/devices.json)" > page/devices.json + - name: Publish test report uses: peaceiris/actions-gh-pages@v4 if: always()