CI: Fix the coverity builds
authorTim Duesterhus <tim@bastelstu.be>
Thu, 28 Jan 2021 17:58:53 +0000 (18:58 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 7 Dec 2021 18:03:11 +0000 (19:03 +0100)
commit94300ec8a8ac30254902e51f10a783ed5772b75d
tree72bb4cbba7005f91f3725f7b031af9451147439e
parent98a10094200680e93e8f99f3879f15f37eb80c5e
CI: Fix the coverity builds

In an attempt to fix the use of DEBUG_STRICT commit
7f0f4786d1927f1450392e871480e3122796024e unfortunately broke the Coverity
builds completely.

It turns out that Coverity does not properly handle quoting within
`COVERITY_SCAN_BUILD_COMMAND`, instead breaking up single arguments at
whitespace, thus passing `-DDEBUG_USE_ABORT=1` to `make` as-is.

Fix this issue by hijacking the Makefile within the Coverity workflow. We
simply replace the default value of the `DEBUG` option with whatever values we
need. The build command now only includes the TARGET and USE_* flags, each of
which works without any spaces.

(cherry picked from commit 66d28e7045459c63e9f5988277926ba74d64697e)
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
.github/workflows/coverity.yml