blob: 07f0d564e37d2753d52a4fe69cb14ddb78ad92e3 [file] [log] [blame]
#!/bin/bash
wget -O protoc.zip https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/protoc-3.14.0-linux-x86_64.zip
unzip -d protoc protoc.zip
if [[ -z "${GITHUB_ENV}" ]]; then
# Local mono_repo presubmit run
export PATH=$PWD/protoc/bin:$PATH
else
# GitHub Actions
echo "PATH=$PWD/protoc/bin:$PATH" >> $GITHUB_ENV
fi