gomuks/.gitlab-ci.yml
2020-05-05 21:03:37 +03:00

42 lines
966 B
YAML

build:
stage: build
image: debian:bullseye
cache:
paths:
- .cache
before_script:
- apt-get update
- apt-get install -y git libolm-dev golang-go
- mkdir -p .cache
- export GOPATH="$CI_PROJECT_DIR/.cache"
script:
- go build -o gomuks_linux_amd64
artifacts:
paths:
- gomuks_linux_amd64
build_static:
stage: build
image: golang:alpine
cache:
paths:
- .cache
before_script:
- 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
artifacts:
paths:
- gomuks_linux_amd64
- gomuks_linux_386
- gomuks_linux_arm
- gomuks_linux_arm64
- gomuks_darwin_amd64