forked from opensvc/multipath-tools
-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (50 loc) · 1.71 KB
/
coverity.yaml
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
51
name: coverity
on:
push:
branches:
- coverity
jobs:
upload-coverity-scan:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v4
- name: dependencies
run: >
sudo apt-get install --yes
gcc make pkg-config
libdevmapper-dev libreadline-dev libaio-dev libsystemd-dev
libudev-dev libjson-c-dev liburcu-dev libcmocka-dev libedit-dev
- name: download coverity
run: >
curl -o cov-analysis-linux64.tar.gz
--form token="$COV_TOKEN"
--form project="$COV_PROJECT"
https://scan.coverity.com/download/cxx/linux64
env:
COV_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
COV_PROJECT: ${{ secrets.COVERITY_SCAN_PROJECT }}
- name: unpack coverity
run: |
mkdir -p coverity
tar xfz cov-analysis-linux64.tar.gz --strip 1 -C coverity
- name: build with cov-build
run: >
PATH="$PWD/coverity/bin:$PATH"
cov-build --dir cov-int make -Orecurse -j"$(grep -c ^processor /proc/cpuinfo)"
- name: pack results
run: tar cfz multipath-tools.tgz cov-int
- name: submit results
run: >
curl
--form token="$COV_TOKEN"
--form email="$COV_EMAIL"
--form file="@multipath-tools.tgz"
--form version="${{ github.ref_name }}"
--form description="$(git describe --tags --match "0.*")"
--form project="$COV_PROJECT"
https://scan.coverity.com/builds
env:
COV_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
COV_PROJECT: ${{ secrets.COVERITY_SCAN_PROJECT }}
COV_EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }}