Commit 3da7067 1 parent 2dfe70c commit 3da7067 Copy full SHA for 3da7067
File tree 3 files changed +5
-28
lines changed
3 files changed +5
-28
lines changed Original file line number Diff line number Diff line change 11
11
target :
12
12
- docker-full
13
13
- docker-minimal
14
+ - linux compress
14
15
steps :
15
16
- name : Checkout code
16
17
uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
Original file line number Diff line number Diff line change 57
57
go-version : 1.22.x
58
58
- name : Checkout code
59
59
uses : actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
60
- - uses : actions/cache@v4.2.0
61
- with :
62
- path : |
63
- ~/go/pkg/mod
64
- ~/.cache/go-build
65
- key : cache-${{ hashFiles('**/go.sum') }}
66
- restore-keys : |
67
- cache-
68
60
- run : go install github.com/onsi/ginkgo/v2/ginkgo
69
61
- run : make bin
70
62
- name : Test
Original file line number Diff line number Diff line change @@ -129,12 +129,12 @@ docker-push:
129
129
docker push ${IMG}
130
130
131
131
.PHONY : compress
132
- compress : .bin/upx
133
- test -e ./$(RELEASE_DIR ) /$(NAME ) _linux_amd64 && $( UPX ) -5 ./$(RELEASE_DIR ) /$(NAME ) _linux_amd64 || true
134
- test -e ./$(RELEASE_DIR ) /$(NAME ) _linux_arm64 && $( UPX ) -5 ./$(RELEASE_DIR ) /$(NAME ) _linux_arm64 || true
132
+ compress :
133
+ test -e ./$(RELEASE_DIR ) /$(NAME ) _linux_amd64 && upx -5 ./$(RELEASE_DIR ) /$(NAME ) _linux_amd64 || true
134
+ test -e ./$(RELEASE_DIR ) /$(NAME ) _linux_arm64 && upx -5 ./$(RELEASE_DIR ) /$(NAME ) _linux_arm64 || true
135
135
136
136
.PHONY : compress-build
137
- compress-build : .bin/upx
137
+ compress-build :
138
138
upx -5 ./$(RELEASE_DIR ) /$(NAME ) ./$(RELEASE_DIR ) /$(NAME ) .test
139
139
140
140
.PHONY : linux
@@ -194,22 +194,6 @@ test-e2e: bin
194
194
./test/e2e.sh
195
195
196
196
197
- .bin/upx :
198
- ifeq (, $(shell which upx) )
199
- ifeq ($(OS ) , darwin)
200
- brew install upx
201
- UPX=upx
202
- else
203
- wget -nv -O upx.tar.xz https://github.com/upx/upx/releases/download/v3.96/upx-3.96-$(OS)_$(ARCH).xz
204
- tar xf upx.tar.xz
205
- mv upx-3.96-$(OS)_$(ARCH)/upx .bin
206
- rm -rf upx-3.96-$(OS)_$(ARCH)
207
- UPX=.bin/upx
208
- endif
209
- else
210
- UPX=$(shell which upx)
211
- endif
212
-
213
197
214
198
.PHONY : ginkgo
215
199
ginkgo :
You can’t perform that action at this time.
0 commit comments