Bug 1548635 - Add opt builds of wrench. r=jrmuizel

Differential Revision: https://phabricator.services.mozilla.com/D29715

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Kartikaya Gupta 2019-05-02 20:50:12 +00:00
Родитель cf811f1da6
Коммит 7d7e68f66b
2 изменённых файлов: 45 добавлений и 4 удалений

Просмотреть файл

@ -238,8 +238,8 @@ jobs:
- 'taskcluster/scripts/misc/tooltool-download.sh'
- 'taskcluster/scripts/misc/wrench-windows-tests.sh'
wrench-android-build:
description: Build wrench for Android
wrench-android-debug:
description: Debug build of wrench for Android
worker-type: b-linux
worker:
max-run-time: 5400
@ -250,7 +250,7 @@ jobs:
path: /builds/worker/checkouts/gecko/gfx/wr/target/android-artifacts/app/build/outputs/apk/app-debug.apk
run:
using: run-task
command: '$GECKO_PATH/taskcluster/scripts/misc/wrench-android-build.sh'
command: '$GECKO_PATH/taskcluster/scripts/misc/wrench-android-build.sh debug'
toolchains:
- android-gradle-dependencies
- android-ndk-linux
@ -263,3 +263,32 @@ jobs:
when:
files-changed:
- 'gfx/wr/**'
- 'taskcluster/scripts/misc/wrench-android-build.sh'
wrench-android-release:
description: Release build of wrench for Android
worker-type: b-linux
worker:
max-run-time: 5400
docker-image: {in-tree: webrender}
artifacts:
- type: file
name: public/build/wrench-release.apk
path: /builds/worker/checkouts/gecko/gfx/wr/target/android-artifacts/app/build/outputs/apk/release/app-release-unsigned.apk
run:
using: run-task
command: '$GECKO_PATH/taskcluster/scripts/misc/wrench-android-build.sh release'
toolchains:
- android-gradle-dependencies
- android-ndk-linux
- android-sdk-linux
- linux64-rust-android
- wrench-deps
treeherder:
platform: android-4-0-armv7-api16/opt
symbol: WR(B)
when:
files-changed:
- 'gfx/wr/**'
- 'taskcluster/scripts/misc/wrench-android-build.sh'
- 'mobile/android/debug_sign_tool.py'

Просмотреть файл

@ -1,6 +1,8 @@
#!/bin/bash
set -x -e -v
MODE=${1?"First argument must be debug|release"}
pushd "${GECKO_PATH}"
./mach artifact toolchain -v $MOZ_TOOLCHAINS
mv wrench-deps/{vendor,.cargo,cargo-apk} gfx/wr
@ -33,5 +35,15 @@ export ANDROID_HOME="${GECKO_PATH}/android-sdk-linux"
export NDK_HOME="${GECKO_PATH}/android-ndk"
export CARGO_APK_GRADLE_COMMAND="${GECKO_PATH}/android-gradle-dependencies/gradle-dist/bin/gradle"
export CARGO_APK_BUILD_GRADLE_INC="${PWD}/build.gradle.inc"
../cargo-apk/bin/cargo-apk build --frozen --verbose
if [ "$MODE" == "debug" ]; then
../cargo-apk/bin/cargo-apk build --frozen --verbose
elif [ "$MODE" == "release" ]; then
../cargo-apk/bin/cargo-apk build --frozen --verbose --release
${GECKO_PATH}/mobile/android/debug_sign_tool.py --verbose \
../target/android-artifacts/app/build/outputs/apk/release/app-release-unsigned.apk
else
echo "Unknown mode '${MODE}'; must be 'debug' or 'release'"
exit 1
fi
popd