Skip to content

Commit 3a829f1

Browse files
committed
ci(coverity): output the build log upon error
It is quite helpful to know what Coverity said, exactly, in case it fails to analyze the code. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent c65120f commit 3a829f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/coverity.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@ jobs:
149149
run: |
150150
export PATH="$PATH:$(cygpath -au "$RUNNER_TEMP")/cov-analysis/bin" &&
151151
cov-configure --gcc &&
152-
cov-build --dir cov-int make
152+
if ! cov-build --dir cov-int make
153+
then
154+
cat cov-int/build-log.txt
155+
exit 1
156+
fi
153157
- name: package the build
154158
run: tar -czvf cov-int.tgz cov-int
155159
- name: submit the build to Coverity Scan

0 commit comments

Comments
 (0)