# 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:
        resources:
            - 'libs'
    fetches:
        toolchain:
            - rust

desktop-linux:
    description: 'Desktop libs (Linux): build'
    run:
        script: desktop-linux.sh
        toolchain-alias: desktop-linux-libs
        toolchain-artifact: public/build/linux.tar.gz

desktop-macos:
    description: 'Desktop libs (macOS): build'
    scopes:
        - project:releng:services/tooltool/api/download/internal
    fetches:
        fetch:
            - nss-artifact
    worker:
        docker-image: {in-tree: linux}
    run:
        script: desktop-macos.sh
        toolchain-alias: desktop-macos-libs
        toolchain-artifact: public/build/macos.tar.gz
