ADD: added new version of protobuf

This commit is contained in:
Henry Winkel
2022-12-20 10:09:28 +01:00
parent 4a79559129
commit 1e2b3dda7b
1513 changed files with 123720 additions and 83381 deletions

View File

@@ -6,14 +6,38 @@ set -eux
export HOMEBREW_PREFIX=$(brew --prefix)
##
# Remove any pre-existing protobuf installation.
brew uninstall protobuf
##
# Select Xcode version
##
# Select Xcode version
export DEVELOPER_DIR=/Applications/Xcode_14.app/Contents/Developer
sudo xcode-select -s "${DEVELOPER_DIR}"
##
# Use Python 2 by default (for googletest)
pyenv global 2.7.18
# Select C/C++ compilers
export CC=gcc
export CXX=g++
##
# Install Python 2 by default
eval "$(pyenv init -)"
pyenv install -v -s 2.7.18 && pyenv global 2.7.18
##
# Install Tox
if [[ "${KOKORO_INSTALL_TOX:-}" == "yes" ]] ; then
pyenv install -v -s 3.7.13
pyenv global 3.7.13
sudo python -m pip install --upgrade pip 'tox==3.27.1' tox-pyenv
fi
##
# Setup RVM
@@ -23,19 +47,3 @@ if [[ "${KOKORO_INSTALL_RVM:-}" == "yes" ]] ; then
git config --global --add safe.directory $HOMEBREW_PREFIX/Library/Taps/homebrew/homebrew-services
sudo chown -R $(whoami) $HOME/.rvm/
fi
# "Install" valgrind if it doesn't exist
##
if [ ! -x "$(command -v valgrind)" ]; then
echo "#! /bin/bash" > valgrind
chmod ug+x valgrind
sudo mv valgrind /usr/local/bin/valgrind
fi
##
# Install Virtual Python Environment
if [[ "${KOKORO_INSTALL_VENV:-}" == "yes" ]] ; then
python3 -m venv venv
source venv/bin/activate
fi