Files
firefox/taskcluster/ci/build/android.yml
T
Ralph Giles 0207fcff0f Bug 1391427 - Package upstream rust in taskcluster. r=glandium
Add a toolchain job description which calls the
repack_rust.py script to package the requested
upstream build of Rust and its standard libraries
for use in gecko builds.

Links are added to these new toolchains for various build
and analysis tasks as appropriate. The base-toolchain
tasks use an explicitly-versioned toolchain since those
can be different from the current release used for most builds.

The corresponding tooltool manifest entries are removed
now that taskcluster artifact versions are available.
This simplifies the update process since new toolchains
can be packaged and used automatically by just updating
the versions in the task descriptions.

A 'linux64-rust' toolchain can be added to other tasks
as a dependency and artifact. It supports linux64-
hosted builds of Rust code targeting linux64 or linux32.

A 'linux64-rust-macos' toolchain targets linux64-hosted
builds of Rust code targeting macOS on x86_64.

A 'linux64-rust-android' toolchain targets linux64-hosted
builds of Rust code targeting various Android architectures.

Two 'win64-rust' and 'win32-rust' toolchain tasks create
similar entries for Windows-hosted builds. All our automation
builds are hosted on win64, so we could use one artifact
with support for both targets, but currently this doesn't
work because of cross-compilation issues in some crates.
This patch maintains the previous separation between
win32 and win64 rust toolchains until that can be addressed.

MozReview-Commit-ID: GRiJml8CtzO
2017-09-12 16:30:19 -07:00

385 lines
13 KiB
YAML

android-api-16/debug:
description: "Android 4.0 api-16+ Debug"
index:
product: mobile
job-name: android-api-16-debug
treeherder:
platform: android-4-0-armv7-api16/debug
symbol: tc(B)
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
docker-image: {in-tree: android-build}
max-run-time: 7200
env:
TOOLTOOL_MANIFEST: "mobile/android/config/tooltool-manifests/android/releng.manifest"
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: api-16-debug
tooltool-downloads: internal
toolchains:
- linux64-rust-android
- linux64-sccache
android-x86/opt:
description: "Android 4.2 x86 Opt"
index:
product: mobile
job-name: android-x86-opt
treeherder:
platform: android-4-2-x86/opt
symbol: tc(B)
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
docker-image: {in-tree: android-build}
max-run-time: 7200
env:
TOOLTOOL_MANIFEST: "mobile/android/config/tooltool-manifests/android-x86/releng.manifest"
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: x86
tooltool-downloads: internal
toolchains:
- linux64-rust-android
- linux64-sccache
android-x86-nightly/opt:
description: "Android 4.2 x86 Nightly"
attributes:
nightly: true
index:
product: mobile
job-name: android-x86-opt
type: nightly
treeherder:
platform: android-4-2-x86/opt
symbol: tc(N)
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
docker-image: {in-tree: android-build}
max-run-time: 7200
env:
TOOLTOOL_MANIFEST: "mobile/android/config/tooltool-manifests/android-x86/releng.manifest"
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
- taskcluster_nightly.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: x86
tooltool-downloads: internal
toolchains:
- linux64-rust-android
- linux64-sccache
android-api-16/opt:
description: "Android 4.0 api-16+ Opt"
index:
product: mobile
job-name: android-api-16-opt
treeherder:
platform: android-4-0-armv7-api16/opt
symbol: tc(B)
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
docker-image: {in-tree: android-build}
max-run-time: 7200
env:
TOOLTOOL_MANIFEST: "mobile/android/config/tooltool-manifests/android/releng.manifest"
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: api-16
tooltool-downloads: internal
toolchains:
- linux64-rust-android
- linux64-sccache
android-api-16-nightly/opt:
description: "Android 4.0 api-16+ Nightly"
attributes:
nightly: true
index:
product: mobile
job-name: android-api-16-opt
type: nightly-with-multi-l10n
treeherder:
platform: android-4-0-armv7-api16/opt
symbol: tc(N)
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
docker-image: {in-tree: android-build}
max-run-time: 7200
env:
TOOLTOOL_MANIFEST: "mobile/android/config/tooltool-manifests/android/releng.manifest"
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
- taskcluster_nightly.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: api-16
tooltool-downloads: internal
toolchains:
- linux64-rust-android
- linux64-sccache
android-x86-old-id/opt:
description: "Android 4.2 x86 Opt OldId"
index:
product: mobile
job-name: android-x86-old-id-opt
treeherder:
platform: android-4-2-x86-old-id/opt
symbol: tc(B)
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
docker-image: {in-tree: android-build}
max-run-time: 7200
env:
TOOLTOOL_MANIFEST: "mobile/android/config/tooltool-manifests/android-x86/releng.manifest"
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: x86-old-id
tooltool-downloads: internal
run-on-projects: [ 'mozilla-central' ]
toolchains:
- linux64-rust-android
- linux64-sccache
android-x86-old-id-nightly/opt:
description: "Android 4.2 x86 OldId Nightly"
attributes:
nightly: true
index:
product: mobile
job-name: android-x86-old-id-opt
type: nightly
treeherder:
platform: android-4-2-x86-old-id/opt
symbol: tc(N)
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
docker-image: {in-tree: android-build}
max-run-time: 7200
env:
TOOLTOOL_MANIFEST: "mobile/android/config/tooltool-manifests/android-x86/releng.manifest"
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
- taskcluster_nightly.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: x86-old-id
tooltool-downloads: internal
run-on-projects: [ 'mozilla-central' ]
toolchains:
- linux64-rust-android
- linux64-sccache
android-api-16-old-id/opt:
description: "Android 4.0 api-16+ Opt OldId"
index:
product: mobile
job-name: android-api-16-old-id-opt
treeherder:
platform: android-4-0-armv7-api16-old-id/opt
symbol: tc(B)
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
docker-image: {in-tree: android-build}
max-run-time: 7200
env:
TOOLTOOL_MANIFEST: "mobile/android/config/tooltool-manifests/android/releng.manifest"
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: api-16-old-id
tooltool-downloads: internal
run-on-projects: [ 'mozilla-central' ]
toolchains:
- linux64-rust-android
- linux64-sccache
android-api-16-old-id-nightly/opt:
description: "Android 4.0 api-16+ OldId Nightly"
attributes:
nightly: true
index:
product: mobile
job-name: android-api-16-old-id-opt
type: nightly-with-multi-l10n
treeherder:
platform: android-4-0-armv7-api16-old-id/opt
symbol: tc(N)
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
docker-image: {in-tree: android-build}
max-run-time: 7200
env:
TOOLTOOL_MANIFEST: "mobile/android/config/tooltool-manifests/android/releng.manifest"
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
- taskcluster_nightly.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: api-16-old-id
tooltool-downloads: internal
run-on-projects: [ 'mozilla-central' ]
toolchains:
- linux64-rust-android
- linux64-sccache
android-api-16-gradle/opt:
description: "Android 4.0 api-16+ (Gradle) Opt"
index:
product: mobile
job-name: android-api-16-gradle-opt
treeherder:
platform: android-api-16-gradle/opt
symbol: tc(Bg)
tier: 2
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
docker-image: {in-tree: android-build}
max-run-time: 7200
env:
# Bug 1292762 - Set GRADLE_USER_HOME to avoid sdk-manager-plugin intermittent
GRADLE_USER_HOME: /builds/worker/workspace/build/src/dotgradle
TOOLTOOL_MANIFEST: "mobile/android/config/tooltool-manifests/android/releng.manifest"
artifacts:
- name: public/android/maven
path: /builds/worker/workspace/build/src/obj-firefox/gradle/build/mobile/android/geckoview/maven/
type: directory
- name: public/build/geckoview_example.apk
path: /builds/worker/workspace/build/src/obj-firefox/gradle/build/mobile/android/geckoview_example/outputs/apk/geckoview_example-withGeckoBinaries.apk
type: file
- name: public/build
path: /builds/worker/artifacts/
type: directory
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: api-16-gradle
tooltool-downloads: internal
toolchains:
- linux64-rust-android
- linux64-sccache
android-aarch64/opt:
description: "Android 5.0 AArch64 Opt"
index:
product: mobile
job-name: android-aarch64-opt
treeherder:
platform: android-5-0-aarch64/opt
symbol: tc(B)
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
docker-image: {in-tree: android-build}
max-run-time: 7200
env:
TOOLTOOL_MANIFEST: "mobile/android/config/tooltool-manifests/android/releng.manifest"
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: aarch64
tooltool-downloads: internal
toolchains:
- linux64-rust-android
- linux64-sccache
android-aarch64-nightly/opt:
description: "Android 5.0 AArch64 Nightly"
attributes:
nightly: true
index:
product: mobile
job-name: android-aarch64-opt
type: nightly
treeherder:
platform: android-5-0-aarch64/opt
symbol: tc(N)
worker-type: aws-provisioner-v1/gecko-{level}-b-android
worker:
docker-image: {in-tree: android-build}
max-run-time: 7200
env:
TOOLTOOL_MANIFEST: "mobile/android/config/tooltool-manifests/android/releng.manifest"
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
- disable_signing.py
- platform_supports_post_upload_to_latest.py
- taskcluster_nightly.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: aarch64
tooltool-downloads: internal
toolchains:
- linux64-rust-android
- linux64-sccache