2020-04-28 00:08:49 +02:00
|
|
|
build:
|
2019-07-25 22:53:45 +02:00
|
|
|
stage: build
|
2020-05-05 19:39:14 +02:00
|
|
|
image: debian:bullseye
|
2019-07-25 22:53:45 +02:00
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .cache
|
2020-04-28 00:08:49 +02:00
|
|
|
before_script:
|
2020-04-28 00:10:12 +02:00
|
|
|
- apt-get update
|
2020-04-28 00:11:42 +02:00
|
|
|
- apt-get install -y git libolm-dev golang-go
|
2020-04-28 00:08:49 +02:00
|
|
|
- mkdir -p .cache
|
|
|
|
- export GOPATH="$CI_PROJECT_DIR/.cache"
|
2019-07-25 22:53:45 +02:00
|
|
|
script:
|
2020-05-05 19:39:14 +02:00
|
|
|
- go build -o gomuks_linux_amd64
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- gomuks_linux_amd64
|
|
|
|
|
|
|
|
build_static:
|
|
|
|
stage: build
|
|
|
|
image: golang:alpine
|
|
|
|
cache:
|
|
|
|
paths:
|
|
|
|
- .cache
|
|
|
|
before_script:
|
|
|
|
- apk add git
|
|
|
|
- mkdir -p .cache
|
|
|
|
- export GOPATH="$CI_PROJECT_DIR/.cache"
|
|
|
|
variables:
|
|
|
|
CGO_ENABLED: "0"
|
|
|
|
script:
|
|
|
|
- GOOS=linux GOARCH=amd64 go build -o gomuks_linux_amd64
|
|
|
|
- GOOS=linux GOARCH=386 go build -o gomuks_linux_386
|
|
|
|
- GOOS=linux GOARCH=arm go build -o gomuks_linux_arm
|
|
|
|
- GOOS=linux GOARCH=arm64 go build -o gomuks_linux_arm64
|
|
|
|
- GOOS=darwin GOARCH=amd64 go build -o gomuks_darwin_amd64
|
2019-07-25 22:53:45 +02:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2020-05-05 19:39:14 +02:00
|
|
|
- gomuks_linux_amd64
|
|
|
|
- gomuks_linux_386
|
|
|
|
- gomuks_linux_arm
|
|
|
|
- gomuks_linux_arm64
|
|
|
|
- gomuks_darwin_amd64
|