blob: b52047e6087bde8deb0111779e2a999a69a0f4d1 (
plain)
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
|
image: golang:alpine
variables:
CGO_ENABLED: "0"
stages:
- modules
- build
cache:
paths:
- .cache
default:
before_script:
- apk add git
- mkdir -p .cache
- export GOPATH="$CI_PROJECT_DIR/.cache"
modules:
stage: modules
script:
- go get
.build: &build
stage: build
cache:
paths:
- .cache
script:
- echo "Building... $GOPATH $CGO_ENABLED $GOOS $GOARCH"
- go build -o gomuks
artifacts:
paths:
- gomuks
build_linux_amd64:
<<: *build
variables:
GOOS: linux
GOARCH: amd64
build_linux_386:
<<: *build
variables:
GOOS: linux
GOARCH: "386"
build_linux_arm:
<<: *build
variables:
GOOS: linux
GOARCH: arm
build_linux_arm64:
<<: *build
variables:
GOOS: linux
GOARCH: arm64
build_darwin_amd64:
<<: *build
variables:
GOOS: darwin
GOARCH: amd64
|