From fe330b8657f718de1757bc2004514f141e0707cc Mon Sep 17 00:00:00 2001 From: lukas Date: Sat, 28 Aug 2021 21:32:00 +0200 Subject: [PATCH] shrink bin size with upx --- .gitlab-ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 79c3040..5cbdd99 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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*" \ No newline at end of file