2019-10-22 14:32:10 +00:00
|
|
|
name: Coverity Scan Linux Qt 5.9
|
2024-05-11 05:33:54 +00:00
|
|
|
|
2019-10-22 14:32:10 +00:00
|
|
|
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
|
2024-05-11 05:33:54 +00:00
|
|
|
uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
submodules: recursive
|
2019-10-22 14:32:10 +00:00
|
|
|
|
|
|
|
- name: add build dependencies
|
|
|
|
run: |
|
2023-09-24 06:28:33 +00:00
|
|
|
apt-get update
|
2024-05-07 07:27:42 +00:00
|
|
|
apt-get dist-upgrade -y
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y -q \
|
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
|
2019-10-22 14:32:10 +00:00
|
|
|
run: |
|
2024-05-11 05:33:54 +00:00
|
|
|
git config --global --add safe.directory $GITHUB_WORKSPACE
|
|
|
|
git config --global --add safe.directory $GITHUB_WORKSPACE/libdivecomputer
|
|
|
|
|
|
|
|
- name: get the version information
|
|
|
|
id: version_number
|
|
|
|
uses: ./.github/actions/manage-version
|
|
|
|
with:
|
|
|
|
no-increment: true
|
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 }}/..
|
2024-05-11 05:33:54 +00:00
|
|
|
version: ${{ steps.version_number.outputs.version }}
|
2023-09-25 09:53:03 +00:00
|
|
|
description: Automatic scan on github actions
|