Bug 1499147 - Produce archives of toolchains suitable for use with sccache-dist in automation. r=nalexander

Differential Revision: https://phabricator.services.mozilla.com/D33101

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Chris Manchester 2019-05-30 06:38:00 +00:00
Родитель 1c6438d64f
Коммит 99eb67df5d
3 изменённых файлов: 53 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,39 @@
# 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: "sccache-dist toolchain archive build"
worker-type: b-linux
run-on-projects:
- trunk
- try
run:
using: toolchain-script
script: build-dist-toolchains.sh
resources:
- 'taskcluster/scripts/misc/tooltool-download.sh'
clang-dist-toolchain:
treeherder:
symbol: TL(clang-dist)
worker:
max-run-time: 1800
run:
arguments: ['clang']
toolchain-artifact: public/build/clang-dist-toolchain.tar.xz
toolchains:
- linux64-clang-8
- linux64-sccache
rustc-dist-toolchain:
treeherder:
symbol: TL(rustc-dist)
worker:
max-run-time: 1800
run:
arguments: ['rustc']
toolchain-artifact: public/build/rustc-dist-toolchain.tar.xz
toolchains:
- linux64-rust-macos-1.35
- linux64-sccache

Просмотреть файл

@ -40,3 +40,4 @@ jobs-from:
- rust.yml
- rust-size.yml
- sccache.yml
- dist-toolchains.yml

Просмотреть файл

@ -0,0 +1,13 @@
#!/bin/bash
set -x -e -v
# This script is for packaging toolchains suitable for use by distributed sccache.
WORKSPACE=$HOME/workspace
UPLOAD_DIR=$HOME/artifacts
TL_NAME="$1"
cd $WORKSPACE/build/src
. taskcluster/scripts/misc/tooltool-download.sh
sccache/sccache --package-toolchain $PWD/$TL_NAME/bin/$TL_NAME $HOME/artifacts/$TL_NAME-dist-toolchain.tar.xz