Files
tubestation/testing/docker/rust-build/upload_rust.sh
Ralph Giles a313e4dcb1 Bug 1245170 - Upload rust builds to tooltool. r=dustin
Update the gecko-rust-build docker container to upload the
constructed toolchain to tooltool when running on taskcluster,
so it can be used in normal gecko builds (buildbot as well as tc)

Also include a mac build script (which can't run in taskcluster
currently) and a python script for launching the build task from
a local checkout. This is based on Ted's script for building
breakpad's minidump_stackwalk utility.

Matches contents of https://github.com/rillian/rust-build
commit 407c6854e91541341508e96e6a2781434535b7a5
tag v0.2.0
2016-02-16 13:30:19 -08:00

25 lines
617 B
Bash

#!/bin/bash -vex
set -x -e
: WORKSPACE ${WORKSPACE:=/home/worker}
CORES=$(nproc || grep -c ^processor /proc/cpuinfo || sysctl -n hw.ncpu)
set -v
# Upload artifacts packaged by the build script.
pushd ${WORKSPACE}
if test -n "$TASK_ID"; then
# If we're running on task cluster, use the upload-capable tunnel.
TOOLTOOL_OPTS="--url=http://relengapi/tooltool/"
MESSAGE="Taskcluster upload ${TASK_ID}/${RUN_ID} $0"
else
MESSAGE="Rust toolchain build for gecko"
fi
if test -r rust-version; then
MESSAGE="$MESSAGE $(cat rust-version)"
fi
/build/tooltool.py upload ${TOOLTOOL_OPTS} --message="${MESSAGE}"
popd