From 1921b56a0b731288fa620098f7810345b45db4c6 Mon Sep 17 00:00:00 2001 From: Alexander Penev <7923188+alexander-penev@users.noreply.github.com> Date: Thu, 28 Dec 2023 23:47:54 +0200 Subject: [PATCH] Try to fix install clang17@Intel on macOSissue --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf5d0a00f..1c683dd5c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -530,13 +530,13 @@ jobs: echo "/usr/local/opt/ccache/libexec" >> $GITHUB_PATH PATH_TO_LLVM_BUILD=/usr/local/opt/llvm@${{ matrix.clang-runtime }}/ - # For now Package llvm@17 is unsuported on brew, llvm <=@11 are deprecated or deleted. + # For now Package llvm@18 is unsuported on brew, llvm <=@11 are deprecated or deleted. # Install llvm from github releases. - if [[ '${{ matrix.clang-runtime }}' == '17' || ${{ matrix.clang-runtime }} -le 11 ]]; then + if [[ '${{ matrix.clang-runtime }}' == '18' || ${{ matrix.clang-runtime }} -le 11 ]]; then PATH_TO_LLVM_BUILD=/usr/local/opt/llvm@${{ matrix.clang-runtime }}/ pushd /usr/local/opt w="0" - [ '${{ matrix.clang-runtime }}' == '17' ] && w="5" + [ '${{ matrix.clang-runtime }}' == '17' ] && w="6" sudo curl -L https://github.com/llvm/llvm-project/releases/download/llvmorg-${{ matrix.clang-runtime }}.0.$w/clang+llvm-${{ matrix.clang-runtime }}.0.$w-x86_64-apple-darwin.tar.xz | sudo xz -d -c | sudo tar -x sudo rm -fr /usr/local/clang* sudo mv clang+llvm-${{ matrix.clang-runtime }}.0.$w-x86_64-apple-darwin/ llvm@${{ matrix.clang-runtime }}/ @@ -553,7 +553,7 @@ jobs: popd fi - if [[ '${{ matrix.clang-runtime }}' != '17' && ${{ matrix.clang-runtime }} -gt 11 ]]; then + if [[ '${{ matrix.clang-runtime }}' != '18' && ${{ matrix.clang-runtime }} -gt 11 ]]; then brew install llvm@${{ matrix.clang-runtime }} else # Remove the c++ headers that come with the llvm package from homebrew