From a0f30f1576f341bdee45607b9ebf1b1791f3fecb Mon Sep 17 00:00:00 2001 From: Chris Hofstaedtler Date: Sat, 17 Aug 2024 13:49:19 +0200 Subject: [PATCH] actions: archive VM image on test failure --- .github/workflows/test-build.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 03d7994..7ba0c7b 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -93,10 +93,20 @@ jobs: DEBOOTSTRAP: ${{matrix.debootstrap}} - run: ./tests/build-vm-and-test.sh test + id: build_vm_and_test_test name: "Test built VM image for ${{matrix.release}}" env: RELEASE: ${{matrix.release}} + - name: Archive VM image on failure + uses: actions/upload-artifact@v4 + if: always() && (steps.build_vm_and_test_test.outcome == 'failure') + with: + name: vm-image-${{matrix.host_release}}-${{matrix.release}}-${{matrix.debootstrap}} + if-no-files-found: error + path: qemu.img + retention-days: 5 + - name: Archive VM test results uses: actions/upload-artifact@v4 with: