shrink bin size with upx

This commit is contained in:
lukas 2021-08-28 21:32:00 +02:00
parent 2f62f6c407
commit fe330b8657

View File

@ -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*"