2021-08-28 19:32:00 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- compress
|
|
|
|
|
2021-08-26 14:37:02 +00:00
|
|
|
Build_Go:
|
|
|
|
image: golang:latest
|
|
|
|
stage: build
|
|
|
|
script:
|
2021-08-28 19:32:00 +00:00
|
|
|
- go build -ldflags="-s -w" -v -o latexautoinstaller
|
2021-08-26 14:37:02 +00:00
|
|
|
artifacts:
|
|
|
|
expire_in: 2 days
|
|
|
|
paths:
|
|
|
|
- "./latexautoinstaller*"
|
2021-08-28 19:32:00 +00:00
|
|
|
|
|
|
|
Compress_upx:
|
2021-08-28 20:12:10 +00:00
|
|
|
image:
|
|
|
|
name: kolaente/upx
|
2021-08-28 20:16:38 +00:00
|
|
|
entrypoint: [""]
|
2021-08-28 19:32:00 +00:00
|
|
|
stage: compress
|
|
|
|
dependencies:
|
|
|
|
- Build_Go
|
|
|
|
script:
|
2021-08-28 19:45:04 +00:00
|
|
|
- upx --ultra-brute -v --no-progress -o latexautoinstaller-upx latexautoinstaller
|
2021-08-28 19:32:00 +00:00
|
|
|
artifacts:
|
|
|
|
expire_in: 2 days
|
|
|
|
paths:
|
|
|
|
- "./latexautoinstaller-upx*"
|