summaryrefslogtreecommitdiffstats
path: root/taskcluster/ci/toolchain/android.yml
blob: 3c76f7cad4508601f85fe2cffa7f04249abdb143 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
job-defaults:
    worker-type: b-linux-gcp
    worker:
        docker-image: {in-tree: android-build}
        max-run-time: 1800

# In automation, we generate the AVD using the linux64-android-avd jobs. On
# developers' machines, bootstrap will download the artifact from the avd job
# instead of generating it.
#
# The Android AVD needs the corresponding system image generated in the
# linux64-android-system-image TL job. System images are not redistributable,
# so locally bootstrap will use sdkmanager to download the corresponding system
# images.
linux64-android-avd-x86_64-repack:
    attributes:
        local-toolchain: true
    description: "Android AVD (Linux) repack toolchain build"
    treeherder:
        symbol: TL(avd-x86_64-linux)
    run:
        script: repack-android-avd-linux.sh
        arguments:
            - 'python/mozboot/mozboot/android-avds/x86_64.json'
        resources:
            - 'python/mozboot/**/*android*'
        toolchain-artifact: public/build/android-avd-linux.tar.zst
        toolchain-alias: android-avd-x86_64-linux
    fetches:
        toolchain:
            # Aliases aren't allowed for toolchains depending on toolchains.
            - linux64-jdk-repack

linux64-android31-avd-x86_64-repack:
    description: "Android AVD (Linux) repack toolchain build"
    treeherder:
        symbol: TL(avd31-x86_64-linux)
    worker-type: b-linux-kvm-gcp
    worker:
        kvm: true
    run:
        script: repack-android-avd-linux.sh
        arguments:
            - 'python/mozboot/mozboot/android-avds/android31-x86_64.json'
        resources:
            - 'python/mozboot/**/*android*'
        toolchain-artifact: public/build/android-avd-linux.tar.zst
        toolchain-alias: android31-avd-x86_64-linux
    fetches:
        toolchain:
            # Aliases aren't allowed for toolchains depending on toolchains.
            - linux64-jdk-repack


linux64-android-avd-arm-repack:
    attributes:
        local-toolchain: true
    description: "Android AVD (Linux) repack toolchain build"
    treeherder:
        symbol: TL(avd-arm-linux)
    run:
        script: repack-android-avd-linux.sh
        arguments:
            - 'python/mozboot/mozboot/android-avds/arm.json'
        resources:
            - 'python/mozboot/**/*android*'
        toolchain-artifact: public/build/android-avd-linux.tar.zst
        toolchain-alias: android-avd-arm-linux
    fetches:
        toolchain:
            # Aliases aren't allowed for toolchains depending on toolchains.
            - linux64-jdk-repack

linux64-android-avd-arm64-repack:
    attributes:
        local-toolchain: true
    description: "Android AVD (Linux) repack toolchain build"
    treeherder:
        symbol: TL(avd-arm64-linux)
    run:
        script: repack-android-avd-linux.sh
        arguments:
            - 'python/mozboot/mozboot/android-avds/arm64.json'
        resources:
            - 'python/mozboot/**/*android*'
        toolchain-artifact: public/build/android-avd-linux.tar.zst
        toolchain-alias: android-avd-arm64-linux
    fetches:
        toolchain:
            # Aliases aren't allowed for toolchains depending on toolchains.
            - linux64-jdk-repack

linux64-android-system-image-x86_64-repack:
    description: "Android System Images (Linux) repack toolchain build"
    treeherder:
        symbol: TL(x86_64-avd-img-linux)
    run:
        script: repack-android-system-images-linux.sh
        arguments:
            - 'python/mozboot/mozboot/android-avds/x86_64.json'
        resources:
            - 'python/mozboot/**/*android*'
        toolchain-artifact: project/gecko/android-system-images/android-system-images-linux.tar.zst
        toolchain-alias: android-system-image-x86_64-linux
    fetches:
        toolchain:
            # Aliases aren't allowed for toolchains depending on toolchains.
            - linux64-jdk-repack

linux64-android31-system-image-x86_64-repack:
    description: "Android System Images (Linux) repack toolchain build"
    treeherder:
        symbol: TL(x86_64-avd31-img-linux)
    run:
        script: repack-android-system-images-linux.sh
        arguments:
            - 'python/mozboot/mozboot/android-avds/android31-x86_64.json'
        resources:
            - 'python/mozboot/**/*android*'
        toolchain-artifact: project/gecko/android-system-images/android-system-images-linux.tar.zst
        toolchain-alias: android31-system-image-x86_64-linux
    fetches:
        toolchain:
            # Aliases aren't allowed for toolchains depending on toolchains.
            - linux64-jdk-repack


linux64-jdk-repack:
    description: "Java JDK (Linux) repack toolchain build"
    treeherder:
        symbol: TL(jdk)
    run:
        script: repack-jdk-linux.sh
        resources:
            - 'python/mozboot/**/*android*'
        toolchain-artifact: project/gecko/jdk/jdk-linux.tar.zst
        toolchain-alias: linux64-jdk
        toolchain-env:
            JAVA_HOME: "/builds/worker/fetches/jdk/jdk-17.0.10+7"

linux64-android-sdk-linux-repack:
    description: "Android SDK (Linux) repack toolchain build"
    treeherder:
        symbol: TL(android-sdk-linux)
    run:
        script: repack-android-sdk-linux.sh
        resources:
            - 'python/mozboot/**/*android*'
        toolchain-artifact: project/gecko/android-sdk/android-sdk-linux.tar.zst
        toolchain-alias: android-sdk-linux
    fetches:
        toolchain:
            # Aliases aren't allowed for toolchains depending on toolchains.
            - linux64-jdk-repack

linux64-android-emulator-linux-repack:
    description: "Android Emulator (Linux) repack toolchain build"
    treeherder:
        symbol: TL(android-emulator-linux)
    run:
        script: repack-android-emulator-linux.sh
        resources:
            - 'python/mozboot/**/*android*'
        toolchain-artifact: project/gecko/android-emulator/android-emulator-linux.tar.zst
        toolchain-alias: android-emulator-linux
    fetches:
        toolchain:
            # Aliases aren't allowed for toolchains depending on toolchains.
            - linux64-jdk-repack

linux64-android-ndk-linux-repack:
    description: "Android NDK (Linux) repack toolchain build"
    treeherder:
        symbol: TL(android-ndk-linux)
    run:
        script: repack-android-ndk-linux.sh
        resources:
            - 'python/mozboot/**/*android*'
        toolchain-artifact: project/gecko/android-ndk/android-ndk.tar.zst
        toolchain-alias: android-ndk-linux

linux64-android-gradle-dependencies:
    description: "Android Gradle dependencies toolchain task"
    treeherder:
        symbol: TL(gradle-dependencies)
    worker:
        env:
            GRADLE_USER_HOME: "/builds/worker/workspace/build/src/mobile/android/gradle/dotgradle-online"
    run:
        script: android-gradle-dependencies.sh
        sparse-profile: null
        resources:
            - 'taskcluster/scripts/misc/android-gradle-dependencies/**'
            - '*.gradle'
            - 'mobile/android/**/*.gradle'
            - 'mobile/android/config/mozconfigs/android-arm-gradle-dependencies/**'
            - 'mobile/android/config/mozconfigs/common*'
            - 'mobile/android/gradle.configure'
        toolchain-artifact: public/build/android-gradle-dependencies.tar.zst
        toolchain-alias: android-gradle-dependencies
    fetches:
        fetch:
            - sonatype-nexus
            # Nexus needs Java 8
            - jdk-8-linux64
        toolchain:
            # Aliases aren't allowed for toolchains depending on toolchains.
            - linux64-android-sdk-linux-repack
            - linux64-jdk-repack
            - linux64-node

linux64-android-gradle-dependencies-lite:
    description: "Android Lite Gradle dependencies toolchain task"
    treeherder:
        symbol: TL(gradle-dependencies-lite)
    worker:
        env:
            GRADLE_USER_HOME: "/builds/worker/workspace/build/src/mobile/android/gradle/dotgradle-online"
    run:
        script: android-gradle-dependencies-lite.sh
        sparse-profile: null
        resources:
            - 'taskcluster/scripts/misc/android-gradle-dependencies/**'
            - '*.gradle'
            - 'mobile/android/**/*.gradle'
            - 'mobile/android/config/mozconfigs/android-arm-gradle-dependencies/**'
            - 'mobile/android/config/mozconfigs/common*'
            - 'mobile/android/gradle.configure'
        toolchain-artifact: public/build/android-gradle-dependencies.tar.zst
        toolchain-alias: android-gradle-dependencies-lite
    fetches:
        fetch:
            - sonatype-nexus
            # Nexus needs Java 8
            - jdk-8-linux64
        toolchain:
            # Aliases aren't allowed for toolchains depending on toolchains.
            - linux64-android-sdk-linux-repack
            - linux64-jdk-repack
            - linux64-node