Skip to content

Commit 96e50b2

Browse files
committed
[CP-Sec] Enable Coverity scan
1 parent 8e01ced commit 96e50b2

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/coverity.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Coverity Scan
2+
3+
# We only want to test official release code, not every pull request.
4+
on:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
10+
permissions: read-all
11+
12+
jobs:
13+
coverity:
14+
runs-on: ubuntu-latest
15+
container: ghcr.io/codeplaysoftware/sycl-samples:main
16+
steps:
17+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
18+
with:
19+
submodules: "recursive"
20+
- name: Configure image
21+
run: >
22+
apt update && apt install -y curl
23+
- name: Configure CMake
24+
run: >
25+
cmake -B ${{github.workspace}}/build
26+
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
27+
-DCMAKE_CXX_COMPILER=clang++
28+
-DENABLE_GRAPHICS=ON
29+
-DENABLE_SPIR=ON
30+
-DENABLE_CUDA=ON -DCUDA_COMPUTE_CAPABILITY=80
31+
-DENABLE_HIP=ON -DHIP_GFX_ARCH=gfx90a
32+
-DCMAKE_CXX_FLAGS='-Wall -Wextra -Wpedantic -Werror'
33+
-G Ninja
34+
- uses: vapier/coverity-scan-action@2068473c7bdf8c2fb984a6a40ae76ee7facd7a85 # v1.8.0
35+
with:
36+
email: ${{ secrets.COVERITY_SCAN_EMAIL }}
37+
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
38+
command: cmake --build ${{github.workspace}}/build -- -k 0
39+
working-directory: 'src'

0 commit comments

Comments
 (0)