diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index be7a3036d06..e865d4aea3e 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -47,7 +47,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} KREW_GITHUB_TOKEN: ${{ secrets.KREW_GITHUB_TOKEN }} - - uses: cytopia/upload-artifact-retry-action@v0.1.7 + - uses: actions/upload-artifact@v4 if: ${{ always() }} with: name: binaries diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 7ad41c007e9..407374d67f9 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -64,10 +64,29 @@ builds: env: - CGO_ENABLED=0 +- id: apigen + main: ./cmd/apigen + dir: sdk + binary: bin/apigen + ldflags: + - "{{ .Env.LDFLAGS }}" + goos: + - linux + - darwin + goarch: + - amd64 + - arm64 + env: + - CGO_ENABLED=0 + archives: - id: kcp builds: - kcp +- id: apigen + builds: + - apigen + name_template: "apigen_{{ .Version }}_{{ .Os }}_{{ .Arch }}" - id: kubectl-kcp-plugin builds: - kubectl-kcp diff --git a/Makefile b/Makefile index 870336a7a95..58e9c506bb7 100644 --- a/Makefile +++ b/Makefile @@ -115,7 +115,7 @@ ldflags: require-%: @if ! command -v $* 1> /dev/null 2>&1; then echo "$* not found in ${PATH}"; exit 1; fi -build: WHAT ?= ./cmd/... ./cli/cmd/... +build: WHAT ?= ./cmd/... ./cli/cmd/... ./sdk/cmd/... build: require-jq require-go require-git verify-go-versions ## Build the project set -x; for W in $(WHAT); do \ pushd . && cd $${W%..}; \ @@ -128,7 +128,7 @@ build: require-jq require-go require-git verify-go-versions ## Build the project build-all: GOOS=$(OS) GOARCH=$(ARCH) $(MAKE) build WHAT='./cmd/...' -install: WHAT ?= ./cmd/... ./cli/cmd/... +install: WHAT ?= ./cmd/... ./cli/cmd/... ./sdk/cmd/... install: require-jq require-go require-git verify-go-versions ## Install the project set -x; for W in $(WHAT); do \ pushd . && cd $${W%..}; \