Bug 1570240 - Use a fetch task artifact to get rust-size source. r=nalexander

Differential Revision: https://phabricator.services.mozilla.com/D40028
This commit is contained in:
Mike Hommey 2019-07-30 15:12:56 +09:00
Родитель 99201dd8a2
Коммит fd9831be96
3 изменённых файлов: 11 добавлений и 7 удалений

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

@ -291,3 +291,10 @@ tup:
type: git
repo: https://github.com/gittup/tup
revision: 4371a41ba4ece660bf060b598b9eee4c2eb347d8
rust-size:
description: rust-size source code
fetch:
type: git
repo: https://github.com/luser/rust-size
revision: ab659d93b1faba95307df952aefe3fbed3583669

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

@ -10,6 +10,9 @@ job-defaults:
script: build-rust-size.sh
resources:
- 'taskcluster/scripts/misc/tooltool-download.sh'
fetches:
fetch:
- rust-size
linux64-rust-size:
treeherder:

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

@ -1,9 +1,7 @@
#!/bin/bash
set -x -e -v
OWNER=luser
PROJECT=rust-size
PROJECT_REVISION=ab659d93b1faba95307df952aefe3fbed3583669
# This script is for building rust-size
case "$(uname -s)" in
@ -36,11 +34,7 @@ fi
PATH="$PWD/rustc/bin:$PATH"
git clone -n https://github.com/${OWNER}/${PROJECT} ${PROJECT}
cd $PROJECT
git checkout $PROJECT_REVISION
cd $MOZ_FETCHES_DIR/$PROJECT
cargo build --verbose --release