-
Notifications
You must be signed in to change notification settings - Fork 207
51 lines (49 loc) · 1.74 KB
/
coverity.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
name: Run coverity scan
on:
workflow_dispatch:
schedule:
- cron: '3 8 * * *' # Daily at 08:03 UTC
jobs:
Coverity:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install -y autoconf automake autopoint autotools-dev \
gettext libdbus-1-dev gir1.2-gtk-3.0 libgtk-3-dev \
libgirepository1.0-dev libmagick++-dev libqt5x11extras5-dev \
libv4l-dev libx11-dev openjdk-8-jdk-headless perl \
pkg-config python3-minimal python3-dev python3 python3-gi \
qt5-default xmlto
- name: Download Coverity Build Tool
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
run: |
wget -q https://scan.coverity.com/download/cxx/linux64 \
--post-data "token=$TOKEN&project=ZBar" \
-O cov-analysis-linux64.tar.gz
mkdir cov-analysis-linux64
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
- name: Fixed world writable dirs
run: |
chmod go-w $HOME
sudo chmod -R go-w /usr/share
- name: Prepare Coverity
run: |
autoreconf -vfi
./configure
export PATH=${PWD}/cov-analysis-linux64/bin:$PATH
cov-build --dir cov-int make
- name: Submit the result to Coverity Scan
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
run: |
tar czvf zbar.tgz cov-int
curl --form token=$TOKEN \
--form [email protected] \
--form [email protected] \
--form version=trunk \
--form description="Zbar-git-$(git log -1 --pretty='%h')" \
https://scan.coverity.com/builds?project=ZBar