Coverity Scan #57
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverity Scan | |
# workflow_dispatch: allows manual runs from the Actions tab | |
# schedule: runs a weekly scan at 0700 on Monday | |
on: | |
schedule: | |
- cron: "0 7 * * 1" | |
workflow_dispatch: | |
jobs: | |
coverity: | |
runs-on: ubuntu-latest | |
environment: Coverity | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake git build-essential pkg-config gettext libavahi-client-dev libssl-dev zlib1g-dev wget bzip2 git-core liburiparser-dev libpcre2-dev libdvbcsa-dev python3 python3-requests debhelper ccache libomxil-bellagio-dev libva-dev nvidia-cuda-dev | |
- name: Configure | |
run: ./configure --disable-dvbcscan --enable-slow_memoryinfo --enable-libfdkaac --enable-nvenc --enable-vaapi --enable-omx | |
- name: Download Coverity Build Tool | |
run: | | |
wget -q https://scan.coverity.com/download/linux64 --post-data "token=$TOKEN&project=tvheadend%2Ftvheadend" -O cov-analysis-linux64.tar.gz | |
mkdir cov-analysis-linux64 | |
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64 | |
env: | |
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} | |
- name: Build with cov-build | |
run: | | |
export PATH=`pwd`/cov-analysis-linux64/bin:$PATH | |
cov-build --dir cov-int make | |
- name: Submit the result to Coverity Scan | |
run: | | |
tar czvf tvheadend.tgz cov-int | |
curl \ | |
--form token=$TOKEN \ | |
--form email=$EMAIL \ | |
--form [email protected] \ | |
--form version="`./build.linux/tvheadend -v | awk -F ' ' '{print $3}'`" \ | |
--form description="`./build.linux/tvheadend -v | awk -F ' ' '{print $3}'`" \ | |
https://scan.coverity.com/builds?project=tvheadend%2Ftvheadend | |
env: | |
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} | |
EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }} |