From cbf7812d2af878c64bb6843d24b25dec377d0ee2 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbarton@users.noreply.github.com> Date: Thu, 9 May 2024 11:50:22 +0100 Subject: [PATCH] Attempt fix --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 54eac19bd..d9380bc21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -606,10 +606,12 @@ jobs: PATH_TO_LLVM_BUILD=/usr/local/opt/llvm@${{ matrix.clang-runtime }}/ pushd /usr/local/opt w="0" + q="0" [ '${{ 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 + [ '${{ matrix.clang-runtime }}' == '18' ] && q="1" + sudo curl -L https://github.com/llvm/llvm-project/releases/download/llvmorg-${{ matrix.clang-runtime }}.$q.$w/clang+llvm-${{ matrix.clang-runtime }}.$q.$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 }}/ + sudo mv clang+llvm-${{ matrix.clang-runtime }}.$q.$w-x86_64-apple-darwin/ llvm@${{ matrix.clang-runtime }}/ # Use llvm/llvm@10/llvm@6 Filecheck if [[ ! -f $PATH_TO_LLVM_BUILD/bin/FileCheck ]]; then if [[ -f /usr/local/opt/llvm/bin/FileCheck ]]; then