taskcluster/ci/toolchain/cbindgen.yml
author Emilio Cobos Álvarez <emilio@crisal.io>
Mon, 16 Dec 2019 13:31:24 +0000
changeset 507119 aa02e93402e01025296051964250b2dcc0486312
parent 506211 31dee3951024d4c2a9c11cba08993eaeb3f05897
child 512009 6a1a55bc4edffcbb799d8e27ba8364a268e29937
permissions -rw-r--r--
Bug 1604160 - Update cbindgen to do proper copy assignment on tagged enums. r=boris This is needed to support min() / max() / clamp(), as LengthPercentage will have a potential heap allocation and the current copy-assignment operators just do bitwise copies. Differential Revision: https://phabricator.services.mozilla.com/D57300

# 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/.
---
job-defaults:
    description: "cbindgen toolchain build"
    worker-type: b-linux
    worker:
        max-run-time: 3600
    run:
        script: build-cbindgen.sh
        toolchain-artifact: public/build/cbindgen.tar.xz
    fetches:
        fetch:
            # If you update this, make sure to update the minimum version in
            # build/moz.configure/bindgen.configure as well.
            - cbindgen-0.12.0

linux64-cbindgen:
    treeherder:
        symbol: TL(cbindgen)
    worker:
        max-run-time: 1800
    run:
        arguments: ['x86_64-unknown-linux-gnu']
    fetches:
        toolchain:
            - linux64-rust-1.39

macosx64-cbindgen:
    treeherder:
        symbol: TM(cbindgen)
    worker:
        env:
            TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/macosx64/cross-clang.manifest"
    run-on-projects:
        - trunk
        - try
    run:
        arguments: ['x86_64-apple-darwin']
        resources:
            - taskcluster/scripts/misc/tooltool-download.sh
        tooltool-downloads: internal
    fetches:
        toolchain:
            - linux64-cctools-port
            - linux64-clang-9
            - linux64-llvm-dsymutil
            - linux64-rust-macos-1.39

win64-cbindgen:
    treeherder:
        symbol: TW64(cbindgen)
    worker-type: b-win2012
    worker:
        env:
            TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/vs2017.manifest"
    run:
        arguments: ['x86_64-pc-windows-msvc']
        resources:
            - taskcluster/scripts/misc/tooltool-download.sh
        toolchain-artifact: public/build/cbindgen.tar.bz2
        tooltool-downloads: internal
    fetches:
        toolchain:
            - win64-rust-1.39