From b48337dc87d3e0d9c3eb054fc1a70099eff0b17a Mon Sep 17 00:00:00 2001 From: Antonio Gisondi Date: Mon, 9 Oct 2023 16:56:31 +0200 Subject: [PATCH] Bump protoc version Signed-off-by: Antonio Gisondi --- .github/workflows/code-generation.yaml | 3 +++ .github/workflows/python-code-generation.yaml | 7 ++----- .github/workflows/rust-code-generation.yaml | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/code-generation.yaml b/.github/workflows/code-generation.yaml index a6d33cf..710fc70 100644 --- a/.github/workflows/code-generation.yaml +++ b/.github/workflows/code-generation.yaml @@ -25,6 +25,9 @@ on: branches: - 'main' - 'release-*' +env: + PB_REL: https://github.com/protocolbuffers/protobuf/releases + PB_VER: '24.4' concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} diff --git a/.github/workflows/python-code-generation.yaml b/.github/workflows/python-code-generation.yaml index 8b75a6a..b98d193 100644 --- a/.github/workflows/python-code-generation.yaml +++ b/.github/workflows/python-code-generation.yaml @@ -24,9 +24,6 @@ permissions: on: workflow_call: -env: - PB_REL: https://github.com/protocolbuffers/protobuf/releases - jobs: python-build: runs-on: ubuntu-latest @@ -34,8 +31,8 @@ jobs: - uses: actions/checkout@v4 - name: Install protoc run: | - curl -LO $PB_REL/download/v24.3/protoc-24.3-linux-x86_64.zip - unzip protoc-24.3-linux-x86_64.zip -d $HOME/.local + curl -LO $PB_REL/download/v$PB_VER/protoc-$PB_VER-linux-x86_64.zip + unzip protoc-$PB_VER-linux-x86_64.zip -d $HOME/.local echo "$HOME/.local/bin" >> $GITHUB_PATH - name: Make dir for grpc run: mkdir ./grpc/ diff --git a/.github/workflows/rust-code-generation.yaml b/.github/workflows/rust-code-generation.yaml index ff741bd..1de6ab1 100644 --- a/.github/workflows/rust-code-generation.yaml +++ b/.github/workflows/rust-code-generation.yaml @@ -34,8 +34,8 @@ jobs: - uses: actions/checkout@v4 - name: Install protoc run: | - curl -LO $PB_REL/download/v24.3/protoc-24.3-linux-x86_64.zip - unzip protoc-24.3-linux-x86_64.zip -d $HOME/.local + curl -LO $PB_REL/download/v$PB_VER/protoc-$PB_VER-linux-x86_64.zip + unzip protoc-$PB_VER-linux-x86_64.zip -d $HOME/.local echo "$HOME/.local/bin" >> $GITHUB_PATH - name: Install rust toolchain uses: dtolnay/rust-toolchain@master