File: coverity.yml

package info (click to toggle)
appstream-generator 0.10.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,864 kB
  • sloc: cpp: 13,398; xml: 259; sh: 235; python: 103; makefile: 19
file content (50 lines) | stat: -rw-r--r-- 1,469 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Coverity Scan

permissions:
  contents: read

on:
  workflow_dispatch:
  schedule:
    - cron: '0 3 1,15 * *'

jobs:
  coverity:
    if: github.repository == 'ximion/appstream-generator'
    runs-on: ubuntu-24.04
    env:
      CC: gcc-14
      CXX: g++-14
    steps:
    - uses: actions/checkout@v6
      with:
        fetch-tags: true
        fetch-depth: 0

    - name: Create Build Environment
      run: sudo ./tests/ci/install-deps-deb.sh

    - name: Make & Install 3rd-party
      run: sudo ./tests/ci/ci-install-extern.sh

    - name: Create Version String
      id: version
      run: |
        git_commit=$(git rev-parse --short HEAD)
        git_current_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo v1.0.0)
        git_commit_no=$(git rev-list --count "${git_current_tag}..HEAD" 2>/dev/null)
        git_version_full=${git_current_tag#v}; git_version_full=${git_version_full//-/.}
        if [ "$git_commit_no" -gt 0 ]; then
          git_version_full+=".git$git_commit_no"
        fi

        echo "Using version string: $git_version_full"
        echo "git_version_full=$git_version_full" >> $GITHUB_OUTPUT

    - name: Coverity
      uses: vapier/coverity-scan-action@346291b388d0a99b2d82c8d46f5088d0fc494844
      with:
        email: ${{ secrets.COVERITY_SCAN_EMAIL }}
        token: ${{ secrets.COVERITY_SCAN_TOKEN }}
        version: ${{ steps.version.outputs.git_version_full }}
        command: './tests/ci/run-build.sh coverity'