ci: Add Github Actions workflow for coverity build

This commit is contained in:
Martin Kleusberg
2021-12-26 18:06:44 +01:00
parent 16035beb43
commit e1699156f0

31
.github/workflows/coverity.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Coverity
on:
push:
branches: [coverity_scan]
defaults:
run:
shell: bash
jobs:
build:
name: Coverity Scan
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install qttools5-dev libqt5scintilla2-dev libqcustomplot-dev libsqlite3-dev libqt5svg5 libsqlcipher-dev qt5-default
- name: Configure cmake
run: |
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DENABLE_TESTING=ON -Dsqlcipher=1 .
- name: Build and scan
uses: vapier/coverity-scan-action@v0
with:
project: sqlitebrowser%2Fsqlitebrowser
token: ${{ secrets.COVERITY_TOKEN }}
email: 'github@mkleusberg.de'
command: make