2019-10-22 14:32:10 +00:00
|
|
|
name: Coverity Scan Linux Qt 5.9
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 18 * * *' # Daily at 18:00 UTC
|
|
|
|
|
|
|
|
jobs:
|
2023-09-24 06:28:33 +00:00
|
|
|
CoverityScanBuildOnUbuntu:
|
|
|
|
runs-on: ubuntu-latest
|
2020-02-05 18:16:57 +00:00
|
|
|
container:
|
2023-09-24 06:28:33 +00:00
|
|
|
image: ubuntu:22.04
|
2019-10-22 14:32:10 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: checkout sources
|
|
|
|
uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: add build dependencies
|
|
|
|
run: |
|
2023-09-24 06:28:33 +00:00
|
|
|
apt-get update
|
|
|
|
apt-get upgrade -y
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y -q --force-yes \
|
2020-12-30 18:56:02 +00:00
|
|
|
wget curl \
|
2019-10-22 14:32:10 +00:00
|
|
|
autoconf automake cmake g++ git libcrypto++-dev libcurl4-gnutls-dev \
|
|
|
|
libgit2-dev libqt5qml5 libqt5quick5 libqt5svg5-dev \
|
|
|
|
libqt5webkit5-dev libsqlite3-dev libssh2-1-dev libssl-dev libssl-dev \
|
|
|
|
libtool libusb-1.0-0-dev libxml2-dev libxslt1-dev libzip-dev make \
|
|
|
|
pkg-config qml-module-qtlocation qml-module-qtpositioning \
|
2023-09-24 06:28:33 +00:00
|
|
|
qml-module-qtquick2 qt5-qmake qtchooser qtconnectivity5-dev \
|
2019-10-22 14:32:10 +00:00
|
|
|
qtdeclarative5-dev qtdeclarative5-private-dev qtlocation5-dev \
|
|
|
|
qtpositioning5-dev qtscript5-dev qttools5-dev qttools5-dev-tools \
|
2021-01-08 20:53:27 +00:00
|
|
|
qtquickcontrols2-5-dev libbluetooth-dev libmtp-dev
|
2019-10-22 14:32:10 +00:00
|
|
|
|
2023-09-25 09:53:03 +00:00
|
|
|
- name: configure environment
|
2022-05-13 18:33:05 +00:00
|
|
|
env:
|
|
|
|
SUBSURFACE_REPO_PATH: ${{ github.workspace }}
|
2019-10-22 14:32:10 +00:00
|
|
|
run: |
|
2022-05-13 18:33:05 +00:00
|
|
|
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}
|
|
|
|
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}/libdivecomputer
|
2019-10-22 14:32:10 +00:00
|
|
|
|
2023-09-25 09:53:03 +00:00
|
|
|
- name: run coverity scan
|
|
|
|
uses: vapier/coverity-scan-action@v1
|
|
|
|
with:
|
|
|
|
project: Subsurface-divelog/subsurface
|
|
|
|
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
|
|
|
email: glance@acc.umu.se
|
|
|
|
command: subsurface/scripts/build.sh -desktop -build-with-webkit
|
|
|
|
working-directory: ${{ github.workspace }}/..
|
|
|
|
version: $(/scripts/get-version linux)
|
|
|
|
description: Automatic scan on github actions
|