File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
- # Coverity check
1
+ # Coverity - static analysis build. It requires Coverity's token (set in CI's secret).
2
2
name : Coverity
3
3
4
4
on :
7
7
cov_push_tarball :
8
8
description : ' Send Coverity tarball'
9
9
required : true
10
- default : ' true'
10
+ default : true
11
11
type : boolean
12
12
schedule :
13
13
- cron : ' 0 0 * * *'
@@ -18,7 +18,7 @@ permissions:
18
18
jobs :
19
19
coverity :
20
20
name : Coverity
21
- # run only on upstream; forks do not know Username/Password
21
+ # run only on upstream; forks don't have token for upstream's cov project
22
22
if : github.repository == 'oneapi-src/unified-memory-framework'
23
23
runs-on : ubuntu-latest
24
24
steps :
@@ -34,12 +34,14 @@ jobs:
34
34
sudo apt-get install -y cmake hwloc libhwloc-dev libnuma-dev libtbb-dev
35
35
36
36
- name : Download Coverity
37
- run : |
38
- wget -nv https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=oneapi-src%2Funified-memory-framework" -O coverity_tool.tgz
37
+ run : >
38
+ wget
39
+ -O coverity_tool.tgz
40
+ -nv https://scan.coverity.com/download/linux64
41
+ --post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=oneapi-src%2Funified-memory-framework"
39
42
40
43
- name : Extract Coverity
41
- run : |
42
- tar xzf coverity_tool.tgz
44
+ run : tar xzf coverity_tool.tgz
43
45
44
46
- name : Configure CMake
45
47
run : >
60
62
cov-build --dir ${{github.workspace}}/cov-int cmake --build ${{github.workspace}}/build --config Release -j$(nproc)
61
63
62
64
- name : Create tarball to analyze
63
- run : >
64
- tar czvf cov-int_umf.tgz cov-int
65
+ run : tar czvf cov-int_umf.tgz cov-int
65
66
66
67
- name : Push to Coverity Scan
67
68
if : ${{ github.event_name == 'schedule' || github.event.inputs.cov_push_tarball == 'true' }}
You can’t perform that action at this time.
0 commit comments