Skip to content
13 changes: 12 additions & 1 deletion .github/workflows/build-cli-release.reusable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ on:
type: boolean
default: true
required: false

push:
branches:
- protoc-fix
env:
MACOSX_DEPLOYMENT_TARGET: "10.13"

Expand Down Expand Up @@ -69,6 +71,15 @@ jobs:
# shell: bash
# run: |
# ci/ubuntu-install-packages

- uses: actions/setup-go@v5

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate Go setup and protoc-gen-go installation steps detected. Consider consolidating these to avoid redundancy and ensure consistent Go version usage.

with:
go-version: '1.24.4'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explicitly setting go-version (1.24.4) improves reproducibility. However, note that a later setup-go step uses go-version '1.21'. Ensure this discrepancy is intentional.

Suggested change
go-version: '1.24.4'
go-version: '1.21'

- name: Install protoc
run: go install github.com/golang/protobuf/protoc-gen-go@latest

- name: call protoc-gen-go
run: protoc-gen-go --version

- uses: dtolnay/rust-toolchain@stable
with:
Expand Down
Loading