File tree 3 files changed +22
-3
lines changed
3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 47
47
env :
48
48
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
49
KREW_GITHUB_TOKEN : ${{ secrets.KREW_GITHUB_TOKEN }}
50
- -
uses :
cytopia /upload-artifact[email protected]
50
+ - uses : actions /upload-artifact@v4
51
51
if : ${{ always() }}
52
52
with :
53
53
name : binaries
Original file line number Diff line number Diff line change @@ -64,10 +64,29 @@ builds:
64
64
env :
65
65
- CGO_ENABLED=0
66
66
67
+ - id : apigen
68
+ main : ./cmd/apigen
69
+ dir : sdk
70
+ binary : bin/apigen
71
+ ldflags :
72
+ - " {{ .Env.LDFLAGS }}"
73
+ goos :
74
+ - linux
75
+ - darwin
76
+ goarch :
77
+ - amd64
78
+ - arm64
79
+ env :
80
+ - CGO_ENABLED=0
81
+
67
82
archives :
68
83
- id : kcp
69
84
builds :
70
85
- kcp
86
+ - id : apigen
87
+ builds :
88
+ - apigen
89
+ name_template : " apigen_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
71
90
- id : kubectl-kcp-plugin
72
91
builds :
73
92
- kubectl-kcp
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ ldflags:
115
115
require-% :
116
116
@if ! command -v $* 1> /dev/null 2>&1 ; then echo " $* not found in ${PATH} " ; exit 1; fi
117
117
118
- build : WHAT ?= ./cmd/... ./cli/cmd/...
118
+ build : WHAT ?= ./cmd/... ./cli/cmd/... ./sdk/cmd/...
119
119
build : require-jq require-go require-git verify-go-versions # # Build the project
120
120
set -x; for W in $( WHAT) ; do \
121
121
pushd . && cd $$ {W%..}; \
@@ -128,7 +128,7 @@ build: require-jq require-go require-git verify-go-versions ## Build the project
128
128
build-all :
129
129
GOOS=$(OS ) GOARCH=$(ARCH ) $(MAKE ) build WHAT=' ./cmd/...'
130
130
131
- install : WHAT ?= ./cmd/... ./cli/cmd/...
131
+ install : WHAT ?= ./cmd/... ./cli/cmd/... ./sdk/cmd/...
132
132
install : require-jq require-go require-git verify-go-versions # # Install the project
133
133
set -x; for W in $( WHAT) ; do \
134
134
pushd . && cd $$ {W%..}; \
You can’t perform that action at this time.
0 commit comments