add more tests (#1763)

* feat: add goctl docker build scripts

* chore: add more tests
This commit is contained in:
Kevin Wan
2022-04-06 16:09:06 +08:00
committed by GitHub
parent 8694e38384
commit ab01442d46
2 changed files with 19 additions and 0 deletions

View File

@@ -1,12 +1,15 @@
build:
go build -ldflags="-s -w" goctl.go
$(if $(shell command -v upx), upx goctl)
mac:
GOOS=darwin go build -ldflags="-s -w" -o goctl-darwin goctl.go
$(if $(shell command -v upx), upx goctl-darwin)
win:
GOOS=windows go build -ldflags="-s -w" -o goctl.exe goctl.go
$(if $(shell command -v upx), upx goctl.exe)
linux:
GOOS=linux go build -ldflags="-s -w" -o goctl-linux goctl.go
$(if $(shell command -v upx), upx goctl-linux)