-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
89 lines (79 loc) · 2.99 KB
/
.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
image: golang:latest
before_script:
- ln -s /builds /go/src/gitlab.com
- cd /go/src/gitlab.com/Shadow53
- go get github.com/spf13/viper
stages:
- build
linux-arm:
stage: build
script:
- CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -buildmode exe -compiler gc -o zip-builder-linux-arm gitlab.com/Shadow53/zip-builder/zip-builder
- mv zip-builder-linux-arm /builds/Shadow53/zip-builder/
artifacts:
paths:
- zip-builder-linux-arm
expire_in: 1 week
linux-arm64:
stage: build
script:
- CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -buildmode exe -compiler gc -o zip-builder-linux-arm64 gitlab.com/Shadow53/zip-builder/zip-builder
- mv zip-builder-linux-arm64 /builds/Shadow53/zip-builder/
artifacts:
paths:
- zip-builder-linux-arm64
expire_in: 1 week
linux-x86:
stage: build
script:
- CGO_ENABLED=0 GO386=sse2 GOOS=linux GOARCH=386 go build -buildmode exe -compiler gc -o zip-builder-linux-x86 gitlab.com/Shadow53/zip-builder/zip-builder
- mv zip-builder-linux-x86 /builds/Shadow53/zip-builder/
artifacts:
paths:
- zip-builder-linux-x86
expire_in: 1 week
linux-x86_64:
stage: build
script:
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildmode exe -compiler gc -o zip-builder-linux-x86_64 gitlab.com/Shadow53/zip-builder/zip-builder
- mv zip-builder-linux-x86_64 /builds/Shadow53/zip-builder/
artifacts:
paths:
- zip-builder-linux-x86_64
expire_in: 1 week
darwin-x86:
stage: build
script:
- CGO_ENABLED=0 GO386=sse2 GOOS=darwin GOARCH=386 go build -buildmode exe -compiler gc -o zip-builder-darwin-x86 gitlab.com/Shadow53/zip-builder/zip-builder
- mv zip-builder-darwin-x86 /builds/Shadow53/zip-builder/
artifacts:
paths:
- zip-builder-darwin-x86
expire_in: 1 week
darwin-x86_64:
stage: build
script:
- CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -buildmode exe -compiler gc -o zip-builder-darwin-x86_64 gitlab.com/Shadow53/zip-builder/zip-builder
- mv zip-builder-darwin-x86_64 /builds/Shadow53/zip-builder/
artifacts:
paths:
- zip-builder-darwin-x86_64
expire_in: 1 week
windows-x86:
stage: build
script:
- CGO_ENABLED=0 GO386=sse2 GOOS=windows GOARCH=386 go build -buildmode exe -compiler gc -o zip-builder-win32.exe gitlab.com/Shadow53/zip-builder/zip-builder
- mv zip-builder-win32.exe /builds/Shadow53/zip-builder/
artifacts:
paths:
- zip-builder-win32.exe
expire_in: 1 week
windows-x86_64:
stage: build
script:
- CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -buildmode exe -compiler gc -o zip-builder-win64.exe gitlab.com/Shadow53/zip-builder/zip-builder
- mv zip-builder-win64.exe /builds/Shadow53/zip-builder/
artifacts:
paths:
- zip-builder-win64.exe
expire_in: 1 week