diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 295c96cc..cd84857e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -102,8 +102,9 @@ jobs: mkdir build cd build cmake -DCMAKE_CXX_COMPILER=hipcc -DCMAKE_PREFIX_PATH=/opt/rocm .. - cmake --build . - cmake --build . --target install + cmake --build . || { echo 'CMake build failed'; exit 1; } + cmake --build . --target install || { echo 'CMake install failed'; exit 1; } + echo 'Build and install completed successfully' - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v3