2020-12-25 18:36:52 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# scan results: https://scan.coverity.com/projects/haproxy
|
|
|
|
#
|
|
|
|
|
|
|
|
name: Coverity
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * *"
|
|
|
|
|
2021-10-16 16:10:26 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-12-25 18:36:52 +00:00
|
|
|
jobs:
|
|
|
|
scan:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ github.repository_owner == 'haproxy' }}
|
|
|
|
steps:
|
2023-09-06 14:57:29 +00:00
|
|
|
- uses: actions/checkout@v4
|
2020-12-25 18:36:52 +00:00
|
|
|
- name: Install apt dependencies
|
|
|
|
run: |
|
2024-05-31 15:04:14 +00:00
|
|
|
sudo apt-get update -o Acquire::Languages=none -o Acquire::Translation=none
|
2024-05-29 19:59:14 +00:00
|
|
|
sudo apt-get --no-install-recommends -y install \
|
2024-05-29 19:59:15 +00:00
|
|
|
liblua5.4-dev \
|
2020-12-25 18:36:52 +00:00
|
|
|
libsystemd-dev
|
2022-02-02 05:24:58 +00:00
|
|
|
- name: Install QUICTLS
|
|
|
|
run: |
|
|
|
|
QUICTLS=yes scripts/build-ssl.sh
|
2023-08-05 22:07:39 +00:00
|
|
|
- name: Download Coverity build tool
|
|
|
|
run: |
|
|
|
|
wget -c -N https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=Haproxy" -O coverity_tool.tar.gz
|
|
|
|
mkdir coverity_tool
|
|
|
|
tar xzf coverity_tool.tar.gz --strip 1 -C coverity_tool
|
2021-01-28 17:58:53 +00:00
|
|
|
- name: Build WURFL
|
2021-04-02 14:39:44 +00:00
|
|
|
run: make -C addons/wurfl/dummy
|
2023-08-05 22:07:39 +00:00
|
|
|
- name: Build with Coverity build tool
|
|
|
|
run: |
|
|
|
|
export PATH=`pwd`/coverity_tool/bin:$PATH
|
|
|
|
cov-build --dir cov-int make CC=clang TARGET=linux-glibc USE_ZLIB=1 USE_PCRE=1 USE_PCRE_JIT=1 USE_LUA=1 USE_OPENSSL=1 USE_QUIC=1 USE_SYSTEMD=1 USE_WURFL=1 WURFL_INC=addons/wurfl/dummy WURFL_LIB=addons/wurfl/dummy USE_DEVICEATLAS=1 DEVICEATLAS_SRC=addons/deviceatlas/dummy USE_51DEGREES=1 51DEGREES_SRC=addons/51degrees/dummy/pattern ADDLIB=\"-Wl,-rpath,$HOME/opt/lib/\" SSL_LIB=${HOME}/opt/lib SSL_INC=${HOME}/opt/include DEBUG+=-DDEBUG_STRICT=1 DEBUG+=-DDEBUG_USE_ABORT=1
|
|
|
|
- name: Submit build result to Coverity Scan
|
2020-12-25 18:36:52 +00:00
|
|
|
run: |
|
2023-08-05 22:07:39 +00:00
|
|
|
tar czvf cov.tar.gz cov-int
|
|
|
|
curl --form token=${{ secrets.COVERITY_SCAN_TOKEN }} \
|
|
|
|
--form email=chipitsine@gmail.com \
|
|
|
|
--form file=@cov.tar.gz \
|
|
|
|
--form version="Commit $GITHUB_SHA" \
|
|
|
|
--form description="Build submitted via CI" \
|
|
|
|
https://scan.coverity.com/builds?project=Haproxy
|