# 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/.
---
rust:
    description: 'Build the Rust toolchain'
    run:
        resources:
            - rust-toolchain.toml
        script: build-rust-toolchain.sh
        toolchain-alias: rust
        toolchain-artifact: public/build/rust.tar.gz

rust-osx:
    description: 'Build the OSX Rust toolchain'
    run:
        resources:
            - rust-toolchain.toml
        script: build-rust-toolchain-macosx.sh
        toolchain-alias: rust-osx
        toolchain-artifact: public/build/rust-osx.tar.gz
        run-task-command: ["/usr/local/bin/python3", "run-task"]
    worker-type: b-osx
