blob: 878707d2cb538458dcf961bf01e3098b3ffafaf1 [file] [log] [blame]
#!/bin/bash
wget -O protoc.zip \
https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protoc-3.17.3-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