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'
|