diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 63ef01cdeb51..0e1c9ea87b66 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,6 +27,17 @@ jobs: env: CACHE_DIR: ${{ github.workspace }}/.container-cache steps: + - name: Install Clang 17.0.6 + run: | + apt-get update + apt-get install -y software-properties-common + add-apt-repository -y ppa:ubuntu-toolchain-r/test + apt-get install -y clang-17 lldb-17 + update-alternatives --install /usr/bin/clang clang /usr/bin/clang-17 100 + update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-17 100 + echo "Clang version installed:" + - name: Verify Clang installation + run: clang --version - name: Configure local git mirrors run: | # Our stock runners have access to certain local git caches. If these diff --git a/build_tools/ci/build_posix.sh b/build_tools/ci/build_posix.sh index 36e9057c973f..ea3e570c8b7e 100755 --- a/build_tools/ci/build_posix.sh +++ b/build_tools/ci/build_posix.sh @@ -50,7 +50,7 @@ cmake -S "$repo_root/externals/llvm-project/llvm" -B "$build_dir" \ -DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR="$repo_root" \ -DLLVM_TARGETS_TO_BUILD=host \ -DMLIR_ENABLE_BINDINGS_PYTHON=ON \ - -DTORCH_MLIR_ENABLE_LTC=OFF \ + -DTORCH_MLIR_ENABLE_LTC=ON \ -DTORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS=ON echo "::endgroup::"