Skip to content

Commit 1818709

Browse files
Copilotchhwang
andcommitted
Fix CodeQL workflow by disabling test builds
The recent removal of GTest and introduction of custom test framework requires MPI dependency which is not needed for CodeQL analysis. Disable test building in CodeQL workflows to fix the build failures. CodeQL only needs to analyze the core library code, not the tests. Co-authored-by: chhwang <8018170+chhwang@users.noreply.github.com>
1 parent a10aff5 commit 1818709

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
- name: Build
6363
run: |
6464
rm -rf build && mkdir build && cd build
65-
cmake -DMSCCLPP_BYPASS_GPU_CHECK=ON -DMSCCLPP_USE_CUDA=ON ..
65+
cmake -DMSCCLPP_BYPASS_GPU_CHECK=ON -DMSCCLPP_USE_CUDA=ON -DMSCCLPP_BUILD_TESTS=OFF ..
6666
make -j
6767
6868
- name: Perform CodeQL Analysis
@@ -107,7 +107,7 @@ jobs:
107107
- name: Build
108108
run: |
109109
rm -rf build && mkdir build && cd build
110-
CXX=/opt/rocm/bin/hipcc cmake -DMSCCLPP_BYPASS_GPU_CHECK=ON -DMSCCLPP_USE_ROCM=ON ..
110+
CXX=/opt/rocm/bin/hipcc cmake -DMSCCLPP_BYPASS_GPU_CHECK=ON -DMSCCLPP_USE_ROCM=ON -DMSCCLPP_BUILD_TESTS=OFF ..
111111
make -j
112112
113113
- name: Perform CodeQL Analysis

0 commit comments

Comments
 (0)