Update Coverity Scan GitHub Action

* Remove old Python 2 vs. 3 workaround
* Build CAF separately to prevent internal errors in Coverity tools
This commit is contained in:
Jon Siwek 2020-12-12 09:31:47 -08:00
parent 9d8bab692c
commit a3f1e6dafa

View file

@ -35,7 +35,7 @@ jobs:
libssl-dev \ libssl-dev \
python3 \ python3 \
python3-dev \ python3-dev \
python3-pip\ python3-pip \
swig \ swig \
zlib1g-dev \ zlib1g-dev \
libkrb5-dev \ libkrb5-dev \
@ -43,10 +43,12 @@ jobs:
sqlite3 \ sqlite3 \
curl \ curl \
wget wget
# Many distros adhere to PEP 394's recommendation for `python` =
# `python2` so this is a simple workaround until we drop Python 2 - name: Install CAF
# support and explicitly use `python3` for all invocations. run: ( cd auxil/broker/caf && ./configure --prefix=`pwd`/build/install-root && cd build && make -j 3 install )
sudo ln -sf /usr/bin/python3 /usr/local/bin/python
- name: Configure
run: ./configure --build-type=debug --with-caf=`pwd`/auxil/broker/caf/build/install-root
- name: Fetch Coverity Tools - name: Fetch Coverity Tools
env: env:
@ -60,9 +62,6 @@ jobs:
rm coverity_tool.tgz rm coverity_tool.tgz
mv cov-analysis* coverity-tools mv cov-analysis* coverity-tools
- name: Configure
run: ./configure --build-type=debug
- name: Build - name: Build
run: | run: |
export PATH=`pwd`/coverity-tools/bin:$PATH export PATH=`pwd`/coverity-tools/bin:$PATH