forked from yubrajbhoi/unstable-packages
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
87 lines (78 loc) · 1.62 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
image: xeffyr/termux-extra-packages-builder:latest
stages:
- build
- deploy
variables:
GIT_SUBMODULE_STRATEGY: "recursive"
## Use custom install directory (/data) so we will be
## able to cache it.
before_script:
- mkdir -p ./build-data/data/com.termux/files/usr
- mount --bind ./build-data /data
- cp -a ./packages/* ./termux-packages/packages/
## Common configuration for all build jobs.
.job_template: &build_job
stage: build
script:
- bash ./scripts/ci/gitlab.sh $TERMUX_ARCH
retry:
max: 2
when:
- script_failure
- runner_system_failure
- unknown_failure
artifacts:
when: always
expire_in: 1 week
paths:
- deb-packages
## Building packages for AArch64.
build-aarch64:
<<: *build_job
variables:
TERMUX_ARCH: aarch64
cache:
key: aarch64-data
paths:
- build-data
## Building packages for ARM.
build-arm:
<<: *build_job
variables:
TERMUX_ARCH: arm
cache:
key: arm-data
paths:
- build-data
## Building packages for i686.
build-i686:
<<: *build_job
variables:
TERMUX_ARCH: i686
cache:
key: i686-data
paths:
- build-data
## Building packages for x86_64.
build-x86_64:
<<: *build_job
variables:
TERMUX_ARCH: x86_64
cache:
key: x86_64-data
paths:
- build-data
## Submit build packages to repository.
## This should be executed Only if performing
## builds on branch "master".
upload-packages:
stage: deploy
only:
- master@xeffyr/unstable-packages
script:
- bash ./scripts/ci/gitlab.sh --upload
retry:
max: 2
when:
- runner_system_failure
- unknown_failure