Skip to content

Commit 7bd3e53

Browse files
committed
Merge branch 'js/github-ci-win-coverity-fix'
Fixes for GitHub Actions Coverity job. * js/github-ci-win-coverity-fix: ci(coverity): output the build log upon error ci(coverity): fix building on Windows
2 parents e1f335f + 3cc4fc1 commit 7bd3e53

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/coverity.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,13 @@ jobs:
147147
key: cov-build-${{ env.COVERITY_LANGUAGE }}-${{ env.COVERITY_PLATFORM }}-${{ steps.lookup.outputs.hash }}
148148
- name: build with cov-build
149149
run: |
150-
export PATH="$RUNNER_TEMP/cov-analysis/bin:$PATH" &&
150+
export PATH="$PATH:$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)