From a093724d9375c793be90b23f614a711bdef13a3a Mon Sep 17 00:00:00 2001 From: Weronika Lewandowska Date: Tue, 12 Dec 2023 19:55:16 +0100 Subject: [PATCH] Enable adapters for coverity build --- .github/workflows/coverity.yml | 28 +++++++++++++++++++++------- 1 file changed, 21 insertions(+), 7 deletions(-) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index a72b7caf77..9a38d22465 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -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 }} @@ -26,7 +26,7 @@ env: jobs: linux: name: Coverity - runs-on: ubuntu-latest + runs-on: coverity steps: - name: Clone the git repo @@ -36,7 +36,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: |