# 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/.

macosx64-clang/opt:
    description: "Clang toolchain build"
    treeherder:
        kind: build
        platform: toolchains/opt
        symbol: TM(clang)
        tier: 1
    worker-type: aws-provisioner-v1/gecko-{level}-b-macosx64
    worker:
        implementation: docker-worker
        docker-image: {in-tree: desktop-build}
        max-run-time: 36000
    run:
        using: toolchain-script
        script: build-clang-macosx.sh
        tooltool-downloads: internal
        resources:
            - 'build/build-clang/**'

macosx64-clang-tidy/opt:
    description: "Clang-tidy build"
    index:
        product: static-analysis
        job-name: macosx64-clang-tidy
    treeherder:
        kind: build
        platform: toolchains/opt
        symbol: TM(clang-tidy)
        tier: 1
    worker-type: aws-provisioner-v1/gecko-{level}-b-macosx64
    worker:
        implementation: docker-worker
        docker-image: {in-tree: desktop-build}
        max-run-time: 36000
    run:
        using: toolchain-script
        script: build-clang-tidy-macosx.sh
        tooltool-downloads: internal
        resources:
            - 'build/clang-plugin/**'
            - 'build/build-clang/**'

macosx64-cctools-port/opt:
    description: "cctools-port toolchain build"
    treeherder:
        kind: build
        platform: toolchains/opt
        symbol: TM(cctools)
        tier: 1
    worker-type: aws-provisioner-v1/gecko-{level}-b-macosx64
    worker:
        implementation: docker-worker
        docker-image: {in-tree: desktop-build}
        max-run-time: 36000
    run:
        using: toolchain-script
        script: build-cctools-port-macosx.sh
        tooltool-downloads: internal
