forked from scakemyer/quasar
-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy path.gitlab-ci.yml
85 lines (78 loc) · 1.61 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
image: docker:latest
services:
- docker:dind
variables:
DOCKER_DRIVER: overlay2
GOPATH: $CI_PROJECT_DIR/../gopath
stages:
- build
- publish
before_script:
- docker info
- mkdir -p $GOPATH
- apk update
- apk add git go-tools make lftp
- go env
.build:
script:
- make pull
- make $PLATFORM
.publish:
script:
- make pull
- make $PLATFORM
after_script:
- |
mkdir -p build
lftp -c "open 'ftp://$FTP_USER:$FTP_PASS@$FTP_HOST'; \
mkdir -p -f elementum-binaries/$CI_BUILD_REF_NAME; \
lcd build; \
cd elementum-binaries/$CI_BUILD_REF_NAME; \
mirror --reverse --verbose --include-glob *; \
exit;"
only:
- tags
- master
.parallel-matrix:
parallel:
matrix:
- PLATFORM:
- android-arm
- android-arm-shared
- android-arm64
- android-arm64-shared
- android-x64
- android-x64-shared
- android-x86
- android-x86-shared
- linux-armv6
- linux-armv6-shared
- linux-armv7
- linux-armv7-shared
- linux-armv7_softfp
- linux-armv7_softfp-shared
- linux-arm64
- linux-arm64-shared
- linux-x64
- linux-x64-shared
- linux-x86
- linux-x86-shared
- windows-x64
- windows-x64-shared
- windows-x86
- windows-x86-shared
- darwin-x64
- darwin-x64-shared
build:
stage: build
extends:
- .parallel-matrix
- .build
artifacts:
paths:
- "build/**"
publish:
stage: publish
extends:
- .parallel-matrix
- .publish