Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump gRPC to v1.48.1 for CMake Linux CI #1608

Merged
merged 10 commits into from
Sep 26, 2022
Merged
14 changes: 11 additions & 3 deletions ci/setup_grpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,28 @@
set -e
export DEBIAN_FRONTEND=noninteractive
old_grpc_version='v1.33.2'
new_grpc_version='v1.43.2'
new_grpc_version='v1.48.1'
gcc_version_for_new_grpc='5.1'
std_version='14'
install_grpc_version=${new_grpc_version}
grpc_version='v1.39.0'
install_dir='/usr/local/'
usage() { echo "Usage: $0 [-v <gcc-version>] [-i <install_dir>"] 1>&2; exit 1;}

while getopts ":v:i:" o; do
while getopts ":v:i:r:s:" o; do
case "${o}" in
v)
gcc_version=${OPTARG}
;;
i)
install_dir=${OPTARG}
;;
r)
install_grpc_version=${OPTARG}
;;
s)
std_version=${OPTARG}
;;
*)
usage
;;
Expand All @@ -31,6 +38,7 @@ if [ -z "${gcc_version}" ]; then
fi
if [[ "${gcc_version}" < "${gcc_version_for_new_grpc}" ]]; then
echo "less"
std_version='11'
install_grpc_version=${old_grpc_version}
fi
if ! type cmake > /dev/null; then
Expand All @@ -52,7 +60,7 @@ cmake -DCMAKE_BUILD_TYPE=Release \
make -j${nproc} install && popd
mkdir -p build && pushd build
cmake -DgRPC_INSTALL=ON \
-DCMAKE_CXX_STANDARD=11 \
-DCMAKE_CXX_STANDARD=${std_version} \
-DgRPC_BUILD_TESTS=OFF \
-DCMAKE_INSTALL_PREFIX=$INSTALL_DIR \
-DCMAKE_PREFIX_PATH=$INSTALL_DIR \
Expand Down