Skip to content

Commit 1c674e3

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 b1e602d commit 1c674e3

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

3944
lin:
4045
strategy:
@@ -65,6 +70,13 @@ jobs:
6570
- name: Test
6671
run: ./.github/test.sh
6772

73+
- name: Archive test logs
74+
if: always()
75+
uses: actions/upload-artifact@v3
76+
with:
77+
name: test-logs-ubuntu-${{ matrix.os }}
78+
path: ivtest/*log/*
79+
6880
- name: Documentation
6981
run: |
7082
cd Documentation
@@ -118,6 +130,13 @@ jobs:
118130
run: |
119131
./.github/test.sh
120132
133+
- name: Archive test logs
134+
if: always()
135+
uses: actions/upload-artifact@v3
136+
with:
137+
name: test-logs-${{ matrix.msystem }}-${{ matrix.arch }}
138+
path: ivtest/*log/*
139+
121140
- uses: actions/upload-artifact@v3
122141
with:
123142
name: ${{ matrix.msystem }}-${{ matrix.arch }}

0 commit comments

Comments
 (0)