1# This Source Code Form is subject to the terms of the Mozilla Public
2# License, v. 2.0. If a copy of the MPL was not distributed with this
3# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4---
5job-defaults:
6    description: "gn toolchain build"
7    worker-type: b-linux
8    worker:
9        max-run-time: 1800
10    run-on-projects:
11        - trunk
12    run:
13        resources:
14            - 'taskcluster/scripts/misc/build-gn-common.sh'
15        toolchain-artifact: public/build/gn.tar.zst
16    fetches:
17        fetch:
18            - gn
19
20linux64-gn:
21    treeherder:
22        symbol: TL(gn)
23    run:
24        script: build-gn-linux.sh
25
26macosx64-gn:
27    treeherder:
28        symbol: TM(gn)
29    run:
30        script: build-gn-macosx.sh
31    fetches:
32        toolchain:
33            - linux64-cctools-port
34            - linux64-clang-toolchain
35            - macosx64-sdk-11.0
36
37win32-gn:
38    treeherder:
39        symbol: TW64(gn)
40    worker-type: b-win2012
41    worker:
42        max-run-time: 3600
43        env:
44            TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/vs2017-15.9.manifest"
45    run:
46        script: build-gn-win32.sh
47        resources:
48            - 'taskcluster/scripts/misc/tooltool-download.sh'
49        tooltool-downloads: internal
50    fetches:
51        fetch:
52            - ninja
53