Update dependencies

This commit is contained in:
Romain Ruetschi
2018-11-20 18:49:44 +01:00
parent 66567189e0
commit 3b374e5a43
7 changed files with 57 additions and 73 deletions

22
ci/install_protobuf.sh Executable file
View File

@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -e
PROTOC_VERSION=$(cat "$(dirname "$(dirname "$0")")/PROTOC_VERSION")
check_protoc_version () {
this_version=$(protoc --version)
return $([ "libprotoc $PROTOC_VERSION" = "$this_version" ])
}
if check_protoc_version; then
echo "[SUCCESS] protobuf version $PROTOC_VERSION detected."
exit
fi
echo "[INFO] Installing protobuf $PROTOC_VERSION to $HOME/protobuf..."
cd "$TMPDIR"
wget "https://github.com/protocolbuffers/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip"
unzip -d "$HOME/protobuf" "protoc-$PROTOC_VERSION-linux-x86_64.zip"
echo "[SUCCESS] Done."