|
37 | 37 | # Only run scheduled CI on main repo |
38 | 38 | if: (github.repository == 'openxla/stablehlo' || github.event_name != 'schedule') |
39 | 39 | name: "cmake-build ${{ github.event_name == 'schedule' && '(llvm-project@HEAD)' || ''}}" |
40 | | - env: |
41 | | - LLVM_PROJECT_DIR: "llvm-project" |
42 | | - LLVM_BUILD_DIR: "llvm-build" |
43 | | - STABLEHLO_BUILD_DIR: "stablehlo-build" |
44 | | - STABLEHLO_PYTHON_BUILD_DIR: "stablehlo-python-build" |
45 | 40 | strategy: |
46 | 41 | fail-fast: false |
47 | 42 | runs-on: ${{ github.repository == 'openxla/stablehlo' && 'ubuntu-22.04-64core' || 'ubuntu-22.04' }} |
|
66 | 61 | with: |
67 | 62 | llvm-version: ${{ steps.llvm-version.outputs.version }} |
68 | 63 |
|
69 | | - - name: Configure and Build LLVM |
70 | | - shell: bash |
71 | | - run: | |
72 | | - ./build_tools/github_actions/ci_build_cmake_llvm.sh "$LLVM_PROJECT_DIR" "$LLVM_BUILD_DIR" |
73 | | - env: |
74 | | - CMAKE_BUILD_TYPE: Release |
75 | | - MLIR_ENABLE_BINDINGS_PYTHON: ON |
76 | | - |
77 | 64 | - name: Fix kernel mmap rnd bits |
78 | 65 | # Asan in llvm 14 provided in ubuntu 22.04 is incompatible with |
79 | 66 | # high-entropy ASLR in much newer kernels that GitHub runners are |
|
84 | 71 | - name: Build and Test StableHLO (with AddressSanitizer) |
85 | 72 | shell: bash |
86 | 73 | run: | |
87 | | - ./build_tools/github_actions/ci_build_cmake.sh "$LLVM_BUILD_DIR" "$STABLEHLO_BUILD_DIR" |
88 | | - env: |
89 | | - CMAKE_BUILD_TYPE: Release |
90 | | - STABLEHLO_ENABLE_BINDINGS_PYTHON: OFF |
91 | | - STABLEHLO_ENABLE_SANITIZER: address |
| 74 | + cmake --build --preset debug --target check-stablehlo-ci |
92 | 75 |
|
93 | 76 | - name: Build and Test StableHLO (with Python bindings) |
94 | 77 | shell: bash |
95 | 78 | run: | |
96 | | - ./build_tools/github_actions/ci_build_cmake.sh "$LLVM_BUILD_DIR" "$STABLEHLO_BUILD_DIR" |
97 | | - env: |
98 | | - CMAKE_BUILD_TYPE: Release |
99 | | - STABLEHLO_ENABLE_BINDINGS_PYTHON: ON |
| 79 | + cmake --build --preset debug-python --target check-stablehlo-ci |
0 commit comments