From b4f6b111b002b5c4de6d5bbd3f7e227e6dfec29f Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Sun, 14 Jan 2024 17:40:42 -0800 Subject: [PATCH] ci: Upload test logs as build artifacts To be able to better understand why a test might fail on a particular platform upload the log files as a build artifact. Signed-off-by: Lars-Peter Clausen --- .github/test.sh | 1 + .github/workflows/test.yml | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/test.sh b/.github/test.sh index a49bdfb3c8..e24cfd382c 100755 --- a/.github/test.sh +++ b/.github/test.sh @@ -8,6 +8,7 @@ cd ivtest status=0 perl vvp_reg.pl || status=1 +mv log vvp_log perl vpi_reg.pl || status=1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5b17ced60f..6071b23679 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -36,7 +36,12 @@ jobs: - name: Test run: ./.github/test.sh - + - name: Archive test logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: test-logs-macOS + path: ivtest/*log/* lin: strategy: @@ -68,6 +73,13 @@ jobs: - name: Test run: ./.github/test.sh + - name: Archive test logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: test-logs-ubuntu-${{ matrix.os }} + path: ivtest/*log/* + - name: Documentation run: | cd Documentation @@ -121,6 +133,13 @@ jobs: run: | ./.github/test.sh + - name: Archive test logs + if: always() + uses: actions/upload-artifact@v4 + with: + name: test-logs-${{ matrix.msystem }}-${{ matrix.arch }} + path: ivtest/*log/* + - uses: actions/upload-artifact@v4 with: name: ${{ matrix.msystem }}-${{ matrix.arch }}