Skip to content

Commit 5299a2b

Browse files
committed
chore(build.yaml): change protoc installation directory to /usr/local and update PROTOC path
The change was made to ensure that protoc is installed in a standard location for executables in Unix-like operating systems. This simplifies the path configuration and makes the protoc binary more accessible across the system.
1 parent f4659b5 commit 5299a2b

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/build.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,11 @@ jobs:
4747
VERSION=33.1
4848
if ! protoc --version 2>/dev/null | grep -q "$VERSION"; then
4949
wget https://github.com/protocolbuffers/protobuf/releases/download/v${VERSION}/protoc-${VERSION}-linux-x86_64.zip
50-
unzip -o protoc-${VERSION}-linux-x86_64.zip -d ~/.local
50+
sudo unzip -o protoc-${VERSION}-linux-x86_64.zip -d /usr/local
5151
fi
52-
echo "PROTOC=$HOME/.local/bin/protoc" >> ${GITHUB_ENV}
53-
echo "PATH=$PATH:$HOME/.local/bin" >> ${GITHUB_ENV}
52+
echo "PROTOC=/usr/local/bin/protoc" >> ${GITHUB_ENV}
5453
# Verify protoc is accessible
55-
~/.local/bin/protoc --version
54+
protoc --version
5655
5756
# - name: Cache Cargo Registry
5857
# uses: actions/cache@v4

0 commit comments

Comments
 (0)