Skip to content

Commit 21ec79c

Browse files
disable rocm runner to fix configure
Signed-off-by: bogdan-petkovic <bogdan.petkovic@htecgroup.com>
1 parent be54d28 commit 21ec79c

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: |
3838
git config --global --add safe.directory "$GITHUB_WORKSPACE"
3939
40-
- name: Install Python dependencies for premerge checker
40+
- name: Install dependencies for configure + premerge checks
4141
shell: bash
4242
run: |
4343
apt-get update
@@ -93,12 +93,22 @@ jobs:
9393
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
9494
-DCMAKE_C_COMPILER=/opt/rocm/llvm/bin/clang \
9595
-DCMAKE_CXX_COMPILER=/opt/rocm/llvm/bin/clang++ \
96+
-DMLIR_ENABLE_ROCM_RUNNER=0 \
97+
-DMLIR_INCLUDE_INTEGRATION_TESTS=OFF \
98+
-DROCMLIR_DRIVER_PR_E2E_TEST_ENABLED=0 \
9699
|| (echo "CMake configure failed. Dumping logs:"; \
97100
(test -f build/CMakeFiles/CMakeError.log && cat build/CMakeFiles/CMakeError.log) || true; \
98101
(test -f build/CMakeFiles/CMakeOutput.log && cat build/CMakeFiles/CMakeOutput.log) || true; \
99102
exit 1)
100103
101-
test -f build/compile_commands.json
104+
if [[ ! -f build/compile_commands.json ]]; then
105+
echo "Error: build/compile_commands.json was not generated."
106+
echo "Dumping build directory summary and relevant cache entries..."
107+
ls -la build || true
108+
(test -f build/CMakeCache.txt && (grep -E 'CMAKE_EXPORT_COMPILE_COMMANDS|CMAKE_GENERATOR|CMAKE_CXX_COMPILER|CMAKE_C_COMPILER' build/CMakeCache.txt || true)) || true
109+
exit 1
110+
fi
111+
102112
ln -sf build/compile_commands.json compile_commands.json
103113
104114
- name: Run Jenkins premerge static checks (format + tidy)

0 commit comments

Comments
 (0)