Skip to content

Commit ca6661d

Browse files
committed
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 <[email protected]>
1 parent 86bcd7b commit ca6661d

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ cd ivtest
88
status=0
99

1010
perl vvp_reg.pl || status=1
11+
mv log vvp_log
1112

1213
perl vpi_reg.pl || status=1
1314

.github/workflows/test.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ jobs:
3636
3737
- name: Test
3838
run: ./.github/test.sh
39-
39+
- name: Archive test logs
40+
if: always()
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: test-logs-macOS
44+
path: ivtest/*log/*
4045

4146
lin:
4247
strategy:
@@ -68,6 +73,13 @@ jobs:
6873
- name: Test
6974
run: ./.github/test.sh
7075

76+
- name: Archive test logs
77+
if: always()
78+
uses: actions/upload-artifact@v4
79+
with:
80+
name: test-logs-ubuntu-${{ matrix.os }}
81+
path: ivtest/*log/*
82+
7183
- name: Documentation
7284
run: |
7385
cd Documentation
@@ -121,6 +133,13 @@ jobs:
121133
run: |
122134
./.github/test.sh
123135
136+
- name: Archive test logs
137+
if: always()
138+
uses: actions/upload-artifact@v4
139+
with:
140+
name: test-logs-${{ matrix.msystem }}-${{ matrix.arch }}
141+
path: ivtest/*log/*
142+
124143
- uses: actions/upload-artifact@v4
125144
with:
126145
name: ${{ matrix.msystem }}-${{ matrix.arch }}

0 commit comments

Comments
 (0)