forked from precice/precice
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.44 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
name: coverity-scan
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * SAT'
jobs:
latest:
runs-on: ubuntu-latest
container: 'precice/ci-ubuntu-2004:latest'
steps:
- name: Download Coverity Build Tool
run: |
wget -q https://scan.coverity.com/download/linux64 --post-data "token=$TOKEN&project=precice%2Fprecice" -O coverity_tool.tgz
mkdir coverity
tar xzf coverity_tool.tgz --strip 1 -C coverity
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
- name: Checkout preCICE
uses: actions/checkout@v2
with:
path: 'precice'
- name: Configure build
run: |
mkdir build && cd build
cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Debug ../precice
- name: Build with cov-build
run: '../coverity/bin/cov-build --dir cov-int make'
working-directory: build
- name: Submit the result to Coverity Scan
run: |
tar czvf precice.tgz cov-int
curl \
--form token=$TOKEN \
--form email=$EMAIL \
--form [email protected] \
--form version="develop" \
--form description="Nightly Coverity Scan of preCICE" \
https://scan.coverity.com/builds?project=precice%2Fprecice
working-directory: build
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
EMAIL: ${{ secrets.COVERITY_SUBMITTER_EMAIL }}