gomuks/.gitlab-ci.yml

38 lines
776 B
YAML
Raw Normal View History

default:
2020-05-05 19:39:14 +02:00
before_script:
- mkdir -p .cache
- export GOPATH="$CI_PROJECT_DIR/.cache"
cache:
paths:
- .cache
2020-05-10 18:59:35 +02:00
.build-linux: &build-linux
stage: build
2020-05-05 19:39:14 +02:00
script:
2020-05-08 16:29:29 +02:00
- go build -ldflags "-linkmode external -extldflags -static" -o gomuks
2019-07-25 22:53:45 +02:00
artifacts:
paths:
2020-05-08 16:29:29 +02:00
- gomuks
2020-05-10 19:04:41 +02:00
linux/amd64:
<<: *build-linux
image: dock.mau.dev/tulir/gomuks-build-docker:linux-amd64
2020-05-10 19:04:41 +02:00
linux/arm:
<<: *build-linux
image: dock.mau.dev/tulir/gomuks-build-docker:linux-arm
2020-05-10 19:04:41 +02:00
linux/arm64:
<<: *build-linux
image: dock.mau.dev/tulir/gomuks-build-docker:linux-arm64
2020-05-10 19:04:41 +02:00
windows/amd64:
image: dock.mau.dev/tulir/gomuks-build-docker:windows-amd64
stage: build
script:
- go build -ldflags "-linkmode external -extldflags -static" -o gomuks.exe
artifacts:
paths:
- gomuks.exe