forked from diamondburned/6cord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (37 loc) · 835 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
image: golang:alpine
variables:
GO111MODULE: "on"
CGO_ENABLED: 0
before_script:
- apk add git upx
stages:
- build
linux:
stage: build
script:
- time go get
# compiles 6cord without cgo so that it's statically linked
# may affect performance - disabled for ueberzug + xorg
- time go build -ldflags -w -ldflags -s -o $CI_PROJECT_DIR/6cord
- upx -q --8086 -9 $CI_PROJECT_DIR/6cord
artifacts:
paths:
- 6cord
windows:
stage: build
script:
- export GOOS=windows
- time go get
- time go build -o $CI_PROJECT_DIR/6cord.exe
artifacts:
paths:
- 6cord.exe
linux_arm64:
stage: build
script:
- export GOOS=linux GOARCH=arm64
- time go get
- time go build -o $CI_PROJECT_DIR/6cord_arm64
artifacts:
paths:
- 6cord_arm64