You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# An invalid token/project returns a small HTML error page, not the
87
-
# multi-hundred-MB tarball. Fail loudly with a clear hint if so.
88
-
if [ "$(stat -c '%s' cov-analysis.tar.gz)" -lt 1000000 ]; then
89
-
echo "::error::Coverity build tool download failed. Verify the COVERITY_SCAN_TOKEN secret and that the registered project name matches '${COVERITY_PROJECT}'."
90
-
head -c 512 cov-analysis.tar.gz || true
91
-
exit 1
92
-
fi
93
62
mkdir -p cov-analysis
94
63
tar -xzf cov-analysis.tar.gz --strip 1 -C cov-analysis
95
64
echo "${PWD}/cov-analysis/bin" >> "$GITHUB_PATH"
96
65
97
66
- name: Build under cov-build
98
-
# cov-build wraps the compiler and can wedge without producing output;
99
-
# cap it so a hang fails fast instead of idling until the job timeout.
100
-
# 4 translation units under icx normally finish in a few minutes.
101
67
timeout-minutes: 20
102
68
run: |
103
69
# shellcheck disable=SC1091
104
70
source "${ONEAPI_ROOT}/setvars.sh"
105
71
export CC="${CMPLR_ROOT}/bin/icx"
106
-
# icx is clang-based but not auto-configured like gcc, so teach the
107
-
# Coverity front-end about it before capturing the build.
0 commit comments