Skip to content

Revert [=] to fix implicit capture of 'this' via '[=]' is deprecated … #36

Revert [=] to fix implicit capture of 'this' via '[=]' is deprecated …

Revert [=] to fix implicit capture of 'this' via '[=]' is deprecated … #36

name: Coverity code analysis
on:
push:
branches: [ coverity_scan ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ coverity_scan ]
env:
BUILD_TYPE: RelWithDebInfo
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
PROJECTNAME: web-eid/web-eid-app
CMAKE_BUILD_PARALLEL_LEVEL: 3
jobs:
coverity:
name: Run Coverity tests
if: github.repository == 'web-eid/web-eid-app'
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt update -qq && sudo apt install --no-install-recommends -y cmake libpcsclite-dev libgtest-dev libgl-dev libqt6svg6-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -B build -S .
- name: Download Coverity Build Tool
working-directory: ${{github.workspace}}/build
run: |
curl --silent --data "token=$TOKEN&project=$PROJECTNAME" -o cov-analysis-linux64.tar.gz https://scan.coverity.com/download/cxx/linux64
mkdir cov-analysis-linux64
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
- name: Build
run: |
export PATH=$PWD/build/cov-analysis-linux64/bin:$PATH
cov-build --dir build/cov-int cmake --build build --config $BUILD_TYPE
- name: Submit the result to Coverity Scan
working-directory: ${{github.workspace}}/build
run: |
tar czvf upload.tgz cov-int
curl --silent \
--form project=$PROJECTNAME \
--form token=$TOKEN \
--form [email protected] \
--form [email protected] \
--form version=master \
--form description="Github Actions CI build" \
https://scan.coverity.com/builds?project=$PROJECTNAME