From 24030e1971a62f9de1f1eb343faba5223935d32e Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Fri, 9 Aug 2024 13:02:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20use=20protoc=20action=20consiste?= =?UTF-8?q?ntly=20(#4513)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr-test-generated-files.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr-test-generated-files.yaml b/.github/workflows/pr-test-generated-files.yaml index 80dff483f..6124e446f 100644 --- a/.github/workflows/pr-test-generated-files.yaml +++ b/.github/workflows/pr-test-generated-files.yaml @@ -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