-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (33 loc) · 1.36 KB
/
coverity-scan.yml
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
name: Coverity Scan
on:
workflow_dispatch:
env:
BUILD_TYPE: Release
COVERITY_TOKEN: ${{ secrets.COVERITY_TOKEN }}
jobs:
coverity-scan:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install Dependencies
run: sudo apt install libgmock-dev libgtest-dev libyaml-cpp-dev swig -y
- name: Configure
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }}
- name: Set up Coverity Scan
run: |
wget https://scan.coverity.com/download/linux64 --post-data "token=${{ env.COVERITY_TOKEN }}&project=rpm-software-management%2Flibpkgmanifest" -O coverity_tool.tgz
tar -xzvf coverity_tool.tgz
- name: Build with Coverity
working-directory: ${{ github.workspace }}/build
run: |
../cov-analysis-*/bin/cov-build --dir cov-int make -j$(nproc)
- name: Upload Coverity results
working-directory: ${{ github.workspace }}/build
run: |
tar czvf cov-int.tgz cov-int
curl --form token=${{ env.COVERITY_TOKEN }} \
--form [email protected] \
--form [email protected] \
--form version=`git log --oneline -1 | awk '{ print $1;}'` \
--form description="libpkgmanifest - Library for working with RPM manifests" \
https://scan.coverity.com/builds?project=rpm-software-management%2Flibpkgmanifest