shrink bin size with upx
This commit is contained in:
parent
2f62f6c407
commit
fe330b8657
@ -1,9 +1,25 @@
|
||||
stages:
|
||||
- build
|
||||
- compress
|
||||
|
||||
Build_Go:
|
||||
image: golang:latest
|
||||
stage: build
|
||||
script:
|
||||
- go build -v -o latexautoinstaller
|
||||
- go build -ldflags="-s -w" -v -o latexautoinstaller
|
||||
artifacts:
|
||||
expire_in: 2 days
|
||||
paths:
|
||||
- "./latexautoinstaller*"
|
||||
|
||||
Compress_upx:
|
||||
image: hairyhenderson/upx
|
||||
stage: compress
|
||||
dependencies:
|
||||
- Build_Go
|
||||
script:
|
||||
- upx --ultra-brute -o latexautoinstaller-upx latexautoinstaller
|
||||
artifacts:
|
||||
expire_in: 2 days
|
||||
paths:
|
||||
- "./latexautoinstaller-upx*"
|
Loading…
Reference in New Issue
Block a user