-
Notifications
You must be signed in to change notification settings - Fork 43
/
.gitlab-ci.yml
82 lines (71 loc) · 1.25 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
stages:
- prepare
- build
- deploy
workflow:
rules:
- if: $CI_EXTERNAL_PULL_REQUEST_IID
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
variables:
GIT_SUBMODULE_STRATEGY: recursive
CHROME_BIN: "chromium"
simpleCheck:
stage: prepare
script: echo PREPARE
tags:
- linuxX64
# ---- Linux builds ----
buildLinux:
stage: build
when: manual
allow_failure: false
script:
- ./linuxBuild.sh
tags:
- linuxX64
linuxPublishToSnapshot:
stage: deploy
script:
- ./linuxBuildAndPublish.sh
only:
- main
tags:
- linuxX64
# ---- Mac builds ----
buildMac:
stage: build
when: manual
allow_failure: false
script:
- ./macBuild.sh
tags:
- macos
macPublishToSnapshot:
stage: deploy
script:
- ./macBuild.sh
- ./macBuildAndPublish.sh
only:
- main
tags:
- macos
# ---- Windows builds ----
buildWindows:
stage: build
when: manual
allow_failure: false
script:
- $env:CHERE_INVOKING = 'yes'
- C:\msys64\usr\bin\bash -lc "./windowsBuild.sh"
tags:
- windowsX64
windowsPublishToSnapshot:
stage: deploy
script:
- $env:CHERE_INVOKING = 'yes'
- C:\msys64\usr\bin\bash -lc "./windowsBuildAndPublish.sh"
only:
- main
tags:
- windowsX64