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