forked from gemrb/gemrb
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.57 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
name: Coverity Scan checkup
on:
schedule:
- cron: '0 15 1/7 * *' # Weekly at 22:00 UTC
jobs:
latest:
if: github.repository == 'gemrb/gemrb'
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
set -x
sudo apt-get update
sudo apt-get install libsdl2-2.0-0 libsdl2-dev libopenal1 libopenal-dev libsdl2-mixer-dev libsdl2-mixer-2.0-0 libvlc-dev libvorbis-dev python3-dev
- uses: actions/checkout@v4
with:
ref: master
- name: Download Coverity Build Tool
run: |
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=GemRB" -O cov-analysis-linux64.tar.gz
mkdir cov-analysis-linux64
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
- name: Run CMake
run: cmake -DINSOURCEBUILD=1 -DDISABLE_WERROR=1 .
- name: Build with cov-build
run: |
export PATH=`pwd`/cov-analysis-linux64/bin:$PATH
cov-build --dir cov-int make -j2
- name: Submit the result to Coverity Scan
run: |
tar caf gemrb.xz cov-int
curl \
--form token=$TOKEN \
--form [email protected] \
--form [email protected] \
--form version="$(git describe)" \
--form description="GemRB weekly checkup" \
https://scan.coverity.com/builds?project=GemRB
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}