aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-05-05 20:39:14 +0300
committerTulir Asokan <tulir@maunium.net>2020-05-05 20:39:14 +0300
commit5d834b2ca3bc99ec575e900fdf1e1b9281156cbb (patch)
tree3ea39104cf17b8633f7d349ed199c0163dda1b86
parent0988b0590cf9c2909131e86a56a1ad9ed1745431 (diff)
Add static builds without e2ee
-rw-r--r--.editorconfig3
-rw-r--r--.gitlab-ci.yml33
2 files changed, 32 insertions, 4 deletions
diff --git a/.editorconfig b/.editorconfig
index 1b83267..9fa8d76 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -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
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 65864a2..9d88dd7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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_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
+ - gomuks_linux_amd64
+ - gomuks_linux_386
+ - gomuks_linux_arm
+ - gomuks_linux_arm64
+ - gomuks_darwin_amd64