shrink bin size with upx
This commit is contained in:
parent
2f62f6c407
commit
fe330b8657
@ -1,9 +1,25 @@
|
|||||||
|
stages:
|
||||||
|
- build
|
||||||
|
- compress
|
||||||
|
|
||||||
Build_Go:
|
Build_Go:
|
||||||
image: golang:latest
|
image: golang:latest
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- go build -v -o latexautoinstaller
|
- go build -ldflags="-s -w" -v -o latexautoinstaller
|
||||||
artifacts:
|
artifacts:
|
||||||
expire_in: 2 days
|
expire_in: 2 days
|
||||||
paths:
|
paths:
|
||||||
- "./latexautoinstaller*"
|
- "./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