Skip to content

Commit 6659585

Browse files
committed
Save test logs as build artifacts.
1 parent c5f35ba commit 6659585

1 file changed

Lines changed: 34 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ jobs:
3434
ASAN_OPTIONS: leak_check_at_exit=false
3535
CUPS_DEBUG_LOG: test-debug.log
3636
CUPS_DEBUG_LEVEL: 4
37-
run: make test || (test cups/test.log && cat cups/test*.log; test tools/test.log && cat tools/test*.log; exit 1)
37+
run: make test
38+
- name: Upload Test Results
39+
uses: actions/upload-artifact@v4
40+
if: ${{ !cancelled() }}
41+
with:
42+
name: ubuntu-openssl-test-results
43+
path: |
44+
cups/test*.log
45+
tools/test*.log
3846
3947
build-linux-gnutls:
4048

@@ -62,7 +70,15 @@ jobs:
6270
ASAN_OPTIONS: leak_check_at_exit=false
6371
CUPS_DEBUG_LOG: test-debug.log
6472
CUPS_DEBUG_LEVEL: 4
65-
run: make test || (test cups/test.log && cat cups/test*.log; test tools/test.log && cat tools/test*.log; exit 1)
73+
run: make test
74+
- name: Upload Test Results
75+
uses: actions/upload-artifact@v4
76+
if: ${{ !cancelled() }}
77+
with:
78+
name: ubuntu-gnutls-test-results
79+
path: |
80+
cups/test*.log
81+
tools/test*.log
6682
6783
build-macos:
6884

@@ -81,7 +97,15 @@ jobs:
8197
env:
8298
CUPS_DEBUG_LOG: test-debug.log
8399
CUPS_DEBUG_LEVEL: 4
84-
run: make test || (test cups/test.log && cat cups/test*.log; test tools/test.log && cat tools/test*.log; exit 1)
100+
run: make test
101+
- name: Upload Test Results
102+
uses: actions/upload-artifact@v4
103+
if: ${{ !cancelled() }}
104+
with:
105+
name: macos-test-results
106+
path: |
107+
cups/test*.log
108+
tools/test*.log
85109
86110
build-windows:
87111

@@ -100,3 +124,10 @@ jobs:
100124
run: cd vcnet; msbuild libcups.sln
101125
- name: Test libcups
102126
run: cd vcnet; ./runtests.bat x64\Debug
127+
- name: Upload Test Results
128+
uses: actions/upload-artifact@v4
129+
if: ${{ !cancelled() }}
130+
with:
131+
name: windows-test-results
132+
path: |
133+
vcnet/test*.log

0 commit comments

Comments
 (0)