# 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/.
---
task-defaults:
    run:
        using: toolchain-script
    treeherder:
        kind: build
        platform: toolchains/opt
        tier: 1


linux64-android-sdk-linux-repack:
    attributes:
        artifact_prefix: mobile/android-sdk
    description: "Android SDK (Linux) repack toolchain build"
    fetches:
        fetch:
            - android-sdk
    run:
        script: repack-android-sdk-linux.sh
        resources:
            - android-components/.config.yml
        toolchain-artifact: mobile/android-sdk/android-sdk-linux.tar.xz
        toolchain-alias: android-sdk-linux
    treeherder:
        symbol: TL(android-sdk-linux)
    worker:
        docker-image: {in-tree: base}
        max-run-time: 600
    worker-type: b-android
