Add static builds without e2ee

This commit is contained in:
Tulir Asokan 2020-05-05 20:39:14 +03:00
parent 0988b0590c
commit 5d834b2ca3
2 changed files with 32 additions and 4 deletions

View File

@ -7,3 +7,6 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[.gitlab-ci.yml]
indent_size = 2

View File

@ -1,7 +1,6 @@
image: debian:bullseye
build:
stage: build
image: debian:bullseye
cache:
paths:
- .cache
@ -11,7 +10,33 @@ build:
- mkdir -p .cache
- export GOPATH="$CI_PROJECT_DIR/.cache"
script:
- go build -o gomuks
- go build -o gomuks_linux_amd64
artifacts:
paths:
- gomuks
- 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
artifacts:
paths:
- gomuks_linux_amd64
- gomuks_linux_386
- gomuks_linux_arm
- gomuks_linux_arm64
- gomuks_darwin_amd64