Skip to content

Commit

Permalink
🧹 use protoc action consistently (#4513)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-rock authored Aug 9, 2024
1 parent 65ad148 commit 24030e1
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/pr-test-generated-files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,14 @@ jobs:
echo "Install GCC on the runner.";
fi
# Note we do not use apt install -y protobuf-compiler` since it is too old
# Note we do not use apt install -y protobuf-compiler` since it is too old
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Check generated files
run: |
PB_REL="https://github.com/protocolbuffers/protobuf/releases"
curl -LO $PB_REL/download/v${PROTO_VERSION}/protoc-${PROTO_VERSION}-linux-x86_64.zip
mkdir tools
unzip protoc-${PROTO_VERSION}-linux-x86_64.zip -d ./tools
rm protoc-${PROTO_VERSION}-linux-x86_64.zip
export PATH="$PATH:$(pwd)/tools/bin"
protoc --version
make prep
make cnquery/generate
Expand Down

0 comments on commit 24030e1

Please sign in to comment.