Skip to content

Commit

Permalink
Enable adapters for coverity build
Browse files Browse the repository at this point in the history
  • Loading branch information
wlemkows committed Dec 12, 2023
1 parent 20b9a83 commit 9823e4c
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
name: coverity-unified-runtime
# It runs static analysis build - Coverity. It requires special token (set in CI's secret).

on:
schedule:
# Run every day at 23:00 UTC
- cron: '0 23 * * *'
workflow_dispatch:
on: [push, pull_request]
#on:
# schedule:
# # Run every day at 23:00 UTC
# - cron: '0 23 * * *'

env:
WORKDIR: ${{ github.workspace }}
Expand All @@ -23,10 +23,11 @@ env:
COVERITY_SCAN_BRANCH_PATTERN: "main"
TRAVIS_BRANCH: ${{ github.ref_name }}


jobs:
linux:
name: Coverity
runs-on: ubuntu-latest
runs-on: coverity

steps:
- name: Clone the git repo
Expand All @@ -36,7 +37,21 @@ jobs:
run: pip install -r third_party/requirements.txt

- name: Configure CMake
run: cmake -B $WORKDIR/build -DUR_ENABLE_TRACING=ON -DUR_DEVELOPER_MODE=ON -DUR_BUILD_TESTS=ON -DUMF_ENABLE_POOL_TRACKING=ON
run: >
cmake
-B $WORKDIR/build
-DUR_ENABLE_TRACING=ON
-DUR_DEVELOPER_MODE=ON
-DUR_BUILD_TESTS=ON
-DUMF_ENABLE_POOL_TRACKING=ON
-DUR_FORMAT_CPP_STYLE=ON
-DCMAKE_BUILD_TYPE=Debug
-DUR_BUILD_ADAPTER_L0=ON
-DUR_BUILD_ADAPTER_OPENCL=ON
-DUR_BUILD_ADAPTER_CUDA=ON
-DCUDA_CUDA_LIBRARY=/usr/local/cuda/lib64/stubs/libcuda.so
-DUR_BUILD_ADAPTER_NATIVE_CPU=ON
-DUR_BUILD_ADAPTER_HIP=ON
- name: Run Coverity
run: |
Expand Down

0 comments on commit 9823e4c

Please sign in to comment.