File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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)
You can’t perform that action at this time.
0 commit comments