|
@@ -62,34 +62,44 @@ jobs:
|
|
|
# Setup to the latest LLVM and Clang release.
|
|
# Setup to the latest LLVM and Clang release.
|
|
|
#
|
|
#
|
|
|
# Ideally we would use the pre-installed versions in the image, but the
|
|
# Ideally we would use the pre-installed versions in the image, but the
|
|
|
- # debian packages for LLVM-12 are broken due to several bugs:
|
|
|
|
|
- # https://bugs.llvm.org/show_bug.cgi?id=43604
|
|
|
|
|
- # https://bugs.llvm.org/show_bug.cgi?id=46321
|
|
|
|
|
|
|
+ # debian packages for LLVM-15 currently don't work for fastbuild.
|
|
|
#
|
|
#
|
|
|
# For now, we rely on Homebrew to manage installing a correctly built
|
|
# For now, we rely on Homebrew to manage installing a correctly built
|
|
|
# toolchain. We also take some care to be as resilient as possible to
|
|
# toolchain. We also take some care to be as resilient as possible to
|
|
|
# issues fetching and installing the toolchain.
|
|
# issues fetching and installing the toolchain.
|
|
|
- - name: Setup LLVM and Clang
|
|
|
|
|
|
|
+ - name: Install Clang/LLVM using brew
|
|
|
env:
|
|
env:
|
|
|
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
|
HOMEBREW_NO_INSTALL_CLEANUP: 1
|
|
|
|
|
+ HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
|
|
|
run: |
|
|
run: |
|
|
|
|
|
+ echo '*** Updating brew'
|
|
|
brew update
|
|
brew update
|
|
|
|
|
+ echo '*** Installing LLVM deps'
|
|
|
brew install --force-bottle --only-dependencies llvm
|
|
brew install --force-bottle --only-dependencies llvm
|
|
|
|
|
+ echo '*** Installing LLVM itself'
|
|
|
brew install --force-bottle --force --verbose llvm
|
|
brew install --force-bottle --force --verbose llvm
|
|
|
|
|
+ echo '*** brew info llvm'
|
|
|
brew info llvm
|
|
brew info llvm
|
|
|
|
|
+ echo '*** brew config'
|
|
|
brew config
|
|
brew config
|
|
|
|
|
+ echo '*** Updating PATH'
|
|
|
echo "$(brew --prefix llvm)/bin" >> $GITHUB_PATH
|
|
echo "$(brew --prefix llvm)/bin" >> $GITHUB_PATH
|
|
|
|
|
|
|
|
# Print the various tool paths and versions to help in debugging.
|
|
# Print the various tool paths and versions to help in debugging.
|
|
|
- name: Print tool debugging info
|
|
- name: Print tool debugging info
|
|
|
run: |
|
|
run: |
|
|
|
|
|
+ echo '*** PATH'
|
|
|
echo $PATH
|
|
echo $PATH
|
|
|
|
|
+ echo '*** bazelisk'
|
|
|
which bazelisk
|
|
which bazelisk
|
|
|
bazelisk --version
|
|
bazelisk --version
|
|
|
|
|
+ echo '*** python'
|
|
|
which python
|
|
which python
|
|
|
python --version
|
|
python --version
|
|
|
|
|
+ echo '*** clang'
|
|
|
which clang
|
|
which clang
|
|
|
clang --version
|
|
clang --version
|
|
|
|
|
+ echo '*** clang++'
|
|
|
which clang++
|
|
which clang++
|
|
|
clang++ --version
|
|
clang++ --version
|
|
|
|
|
|