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 Jan 15, 2024
1 parent b1e602d commit c2bfded
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ cd ivtest
status=0

perl vvp_reg.pl || status=1
tar -cjf vvp_reg_log.tar.bz2 log/*.log

perl vpi_reg.pl || status=1
tar -cjf vpi_reg_log.tar.bz2 vpi_log/*.log

python3 vvp_reg.py || status=1

Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ jobs:

- name: Test
run: ./.github/test.sh

- name: Archive test logs
uses: actions/upload-artifact@v3
with:
name: test-logs-mac
path: ivtest/*reg_log.tar.bz2

lin:
strategy:
Expand Down Expand Up @@ -65,6 +69,12 @@ jobs:
- name: Test
run: ./.github/test.sh

- name: Archive test logs
uses: actions/upload-artifact@v3
with:
name: test-logs-linux-${{ matrix.msystem }}-${{ matrix.arch }}
path: ivtest/*reg_log.tar.bz2

- name: Documentation
run: |
cd Documentation
Expand Down Expand Up @@ -118,6 +128,12 @@ jobs:
run: |
./.github/test.sh

- name: Archive test logs
uses: actions/upload-artifact@v3
with:
name: test-logs-${{ matrix.msystem }}-${{ matrix.arch }}
path: ivtest/*reg_log.tar.bz2

- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.msystem }}-${{ matrix.arch }}
Expand Down

0 comments on commit c2bfded

Please sign in to comment.