Skip to content

Commit

Permalink
actions: archive VM image on test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
zeha committed Aug 17, 2024
1 parent 4c31c18 commit a7ff21b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a7ff21b

Please sign in to comment.