mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Taskcluster: add Android x86 build
This commit is contained in:
parent
6fa0c6bbf7
commit
556435ae01
1 changed files with 27 additions and 8 deletions
|
@ -13,6 +13,7 @@ def main(task_for, mock=False):
|
||||||
if CONFIG.git_ref in ["refs/heads/auto", "refs/heads/try", "refs/heads/try-taskcluster"]:
|
if CONFIG.git_ref in ["refs/heads/auto", "refs/heads/try", "refs/heads/try-taskcluster"]:
|
||||||
linux_tidy_unit()
|
linux_tidy_unit()
|
||||||
android_arm32()
|
android_arm32()
|
||||||
|
android_x86()
|
||||||
windows_dev()
|
windows_dev()
|
||||||
if mock:
|
if mock:
|
||||||
windows_release()
|
windows_release()
|
||||||
|
@ -82,14 +83,8 @@ def with_rust_nightly():
|
||||||
|
|
||||||
def android_arm32():
|
def android_arm32():
|
||||||
return (
|
return (
|
||||||
linux_build_task("Android ARMv7: build")
|
android_build_task("Android ARMv7: release build")
|
||||||
# file: NDK parses $(file $SHELL) to tell x64 host from x86
|
.with_script("./mach build --android --release")
|
||||||
# wget: servo-media-gstreamer’s build script
|
|
||||||
.with_script("""
|
|
||||||
apt-get install -y --no-install-recommends openjdk-8-jdk-headless file wget
|
|
||||||
./mach bootstrap-android --accept-all-licences --build
|
|
||||||
./mach build --android --release
|
|
||||||
""")
|
|
||||||
.with_artifacts(
|
.with_artifacts(
|
||||||
"/repo/target/armv7-linux-androideabi/release/servoapp.apk",
|
"/repo/target/armv7-linux-androideabi/release/servoapp.apk",
|
||||||
"/repo/target/armv7-linux-androideabi/release/servoview.aar",
|
"/repo/target/armv7-linux-androideabi/release/servoview.aar",
|
||||||
|
@ -98,6 +93,18 @@ def android_arm32():
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def android_x86():
|
||||||
|
return (
|
||||||
|
android_build_task("Android x86: release build")
|
||||||
|
.with_script("./mach build --target i686-linux-android --release")
|
||||||
|
.with_artifacts(
|
||||||
|
"/repo/target/i686-linux-android/release/servoapp.apk",
|
||||||
|
"/repo/target/i686-linux-android/release/servoview.aar",
|
||||||
|
)
|
||||||
|
.find_or_create("build.android_x86_release." + CONFIG.git_sha)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def windows_dev():
|
def windows_dev():
|
||||||
return (
|
return (
|
||||||
windows_build_task("Windows x64: dev build + unit tests")
|
windows_build_task("Windows x64: dev build + unit tests")
|
||||||
|
@ -266,6 +273,18 @@ def linux_build_task(name):
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def android_build_task(name):
|
||||||
|
return (
|
||||||
|
linux_build_task(name)
|
||||||
|
# file: NDK parses $(file $SHELL) to tell x64 host from x86
|
||||||
|
# wget: servo-media-gstreamer’s build script
|
||||||
|
.with_script("""
|
||||||
|
apt-get install -y --no-install-recommends openjdk-8-jdk-headless file wget
|
||||||
|
./mach bootstrap-android --accept-all-licences --build
|
||||||
|
""")
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def windows_build_task(name):
|
def windows_build_task(name):
|
||||||
return (
|
return (
|
||||||
windows_task(name)
|
windows_task(name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue