Skip to content

Commit 616830c

Browse files
[CI] small fixes in coverity workflow
1 parent e66f026 commit 616830c

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/coverity.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Coverity check
1+
# Coverity - static analysis build. It requires Coverity's token (set in CI's secret).
22
name: Coverity
33

44
on:
@@ -7,7 +7,7 @@ on:
77
cov_push_tarball:
88
description: 'Send Coverity tarball'
99
required: true
10-
default: 'true'
10+
default: true
1111
type: boolean
1212
schedule:
1313
- cron: '0 0 * * *'
@@ -18,7 +18,7 @@ permissions:
1818
jobs:
1919
coverity:
2020
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
2222
if: github.repository == 'oneapi-src/unified-memory-framework'
2323
runs-on: ubuntu-latest
2424
steps:
@@ -34,12 +34,14 @@ jobs:
3434
sudo apt-get install -y cmake hwloc libhwloc-dev libnuma-dev libtbb-dev
3535
3636
- 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"
3942
4043
- name: Extract Coverity
41-
run: |
42-
tar xzf coverity_tool.tgz
44+
run: tar xzf coverity_tool.tgz
4345

4446
- name: Configure CMake
4547
run: >
@@ -60,8 +62,7 @@ jobs:
6062
cov-build --dir ${{github.workspace}}/cov-int cmake --build ${{github.workspace}}/build --config Release -j$(nproc)
6163
6264
- 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
6566

6667
- name: Push to Coverity Scan
6768
if: ${{ github.event_name == 'schedule' || github.event.inputs.cov_push_tarball == 'true' }}

0 commit comments

Comments
 (0)