From b856b44635c8433ea22b9366fd444c7f02a41619 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 a49bdfb3c..e24cfd382 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 b50909210..dd8d9b3a3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -35,7 +35,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: @@ -67,6 +72,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 @@ -120,6 +132,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 }}