-
Notifications
You must be signed in to change notification settings - Fork 89
65 lines (63 loc) · 1.99 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Celix Coverity Scan
on:
schedule:
- cron: '0 0 * * 0' # Weekly at 00:00 UTC
workflow_dispatch:
jobs:
latest:
runs-on: ubuntu-22.04
steps:
- name: Checkout source code
uses: actions/checkout@v3.3.0
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -yq --no-install-recommends \
build-essential \
curl \
uuid-dev \
libzip-dev \
libjansson-dev \
libcurl4-openssl-dev \
default-jdk \
cmake \
libffi-dev \
libxml2-dev \
rapidjson-dev \
libavahi-compat-libdnssd-dev \
libcivetweb-dev \
civetweb
- name: Download Coverity Build Tool
run: |
mkdir -p build/cov-analysis-linux64
cd build
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=Apache+Celix" -O cov-analysis-linux64.tar.gz
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
- name: Build
env:
BUILD_OPTIONS: |
-DBUILD_EXPERIMENTAL=ON
-DENABLE_TESTING=ON
-DRSA_JSON_RPC=ON
-DRSA_REMOTE_SERVICE_ADMIN_SHM_V2=ON
-DSHELL_BONJOUR=ON
run: |
cd build
cmake ${BUILD_OPTIONS} ..
export PATH=`pwd`/cov-analysis-linux64/bin:$PATH
cov-build --dir cov-int make
- name: Submit the result to Coverity Scan
run: |
cd build
tar czvf celix.tgz cov-int
curl \
--form project=Apache+Celix \
--form token=$TOKEN \
--form email=a.broekhuis@gmail.com \
--form file=@celix.tgz \
--form version=master \
https://scan.coverity.com/builds?project=Apache+Celix
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}