Skip to content

Commit

Permalink
ci: Upload test logs as build artifacts
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
larsclausen committed Dec 27, 2024
1 parent 86bcd7b commit ca6661d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ cd ivtest
status=0

perl vvp_reg.pl || status=1
mv log vvp_log

perl vpi_reg.pl || status=1

Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit ca6661d

Please sign in to comment.