Skip to content

Commit b856b44

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 06077ed commit b856b44

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
@@ -35,7 +35,12 @@ jobs:
3535
3636
- name: Test
3737
run: ./.github/test.sh
38-
38+
- name: Archive test logs
39+
if: always()
40+
uses: actions/upload-artifact@v4
41+
with:
42+
name: test-logs-macOS
43+
path: ivtest/*log/*
3944

4045
lin:
4146
strategy:
@@ -67,6 +72,13 @@ jobs:
6772
- name: Test
6873
run: ./.github/test.sh
6974

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

0 commit comments

Comments
 (0)