Skip to content

Commit

Permalink
Try to fix llvm@14 and llvm@15 install from brew on macOS (vgvassilev…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-penev authored Nov 27, 2023
1 parent 5749e5c commit be3dba1
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@ jobs:
matrix:

include:
- name: osx-clang-runtime9
os: macos-11
compiler: clang
clang-runtime: '9'

- name: osx-clang-runtime10
os: macos-11
compiler: clang
clang-runtime: '10'

- name: osx-clang-runtime11
os: macos-latest
compiler: clang
Expand Down Expand Up @@ -79,11 +69,6 @@ jobs:
compiler: msvc
clang-runtime: '16'

- name: ubu20-gcc7-runtime8
os: ubuntu-20.04
compiler: gcc-7
clang-runtime: '8'

- name: ubu20-gcc7-runtime11-analyzers
os: ubuntu-20.04
compiler: gcc-7
Expand Down Expand Up @@ -511,7 +496,9 @@ jobs:
- name: Setup LLVM/Clang on macOS
if: runner.os == 'macOS'
run: |
brew install llvm
#brew update
brew install --ignore-dependencies llvm
brew install z3
# Update openssl on osx because the current one is deprecated by python.
curl -L https://bootstrap.pypa.io/get-pip.py | sudo python3
echo "/usr/local/opt/ccache/libexec" >> $GITHUB_PATH
Expand All @@ -522,7 +509,8 @@ jobs:
if [[ '${{ matrix.clang-runtime }}' == '17' || ${{ matrix.clang-runtime }} -le 11 ]]; then
PATH_TO_LLVM_BUILD=/usr/local/opt/llvm@${{ matrix.clang-runtime }}/
pushd /usr/local/opt
[ '${{ matrix.clang-runtime }}' == '9' ] && w="1" || w="0"
w="0"
[ '${{ matrix.clang-runtime }}' == '17' ] && w="5"
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 }}/
Expand Down

0 comments on commit be3dba1

Please sign in to comment.