mirror of
https://github.com/hanzoai/grpc-web.git
synced 2026-10-30 18:35:37 +00:00
* Replace prototool with buf * Remove dep tooling references * Update protoc and buf versions * Add CI test to ensure files are consistently generated * Update Go version to 1.16 * Remove dependencies added by tool installs in CI * Update module file
22 lines
523 B
Bash
Executable File
22 lines
523 B
Bash
Executable File
#!/bin/bash
|
|
# Installs protoc; used for generating JS protobuf stubs.
|
|
# This script is intended to be run by CI
|
|
|
|
set -ex
|
|
|
|
if [[ -z "$PROTOC_VER" ]]; then
|
|
echo "PROTOC_VER environment variable not set"
|
|
exit 1
|
|
fi
|
|
|
|
curl -sSL \
|
|
https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VER}/protoc-${PROTOC_VER}-linux-$(uname -m).zip \
|
|
-o protoc.zip
|
|
rm -rf protoc
|
|
mkdir -p protoc
|
|
unzip protoc.zip -d protoc
|
|
rm protoc.zip
|
|
chmod +x ./protoc/bin/protoc
|
|
|
|
echo 'export PATH=$PATH:$PWD/protoc/bin' >> $BASH_ENV
|