Skip to content

[branch-4.0] Upgrade pulsar go client to latest and golang to 1.25 (#1948) #2229

[branch-4.0] Upgrade pulsar go client to latest and golang to 1.25 (#1948)

[branch-4.0] Upgrade pulsar go client to latest and golang to 1.25 (#1948) #2229

name: Pulsarctl
on:
pull_request:
branches:
- '*'
path-ignores:
- 'docs/**'
- 'README.md'
- 'CONTRIBUTING.md'
jobs:
release-check:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: [ 1.25 ]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
id: go
- name: build
run: |
version=`cat VERSION`
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o pulsarctl-amd64-linux -ldflags "-X github.com/streamnative/pulsarctl/pkg/pulsar.ReleaseVersion=Pulsarctl-Go-$version" .
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -o pulsarctl-386-linux -ldflags "-X github.com/streamnative/pulsarctl/pkg/pulsar.ReleaseVersion=Pulsarctl-Go-$version" .
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o pulsarctl-amd64-darwin -ldflags "-X github.com/streamnative/pulsarctl/pkg/pulsar.ReleaseVersion=Pulsarctl-Go-$version" .
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o pulsarctl-amd64-windows.exe -ldflags "-X github.com/streamnative/pulsarctl/pkg/pulsar.ReleaseVersion=Pulsarctl-Go-$version" .
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -o pulsarctl-386-windows.exe -ldflags "-X github.com/streamnative/pulsarctl/pkg/pulsar.ReleaseVersion=Pulsarctl-Go-$version" .
- name: build-site
run: |
make cli