mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 12:51:09 +02:00
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
20 lines
497 B
Bash
20 lines
497 B
Bash
#!/bin/bash -vex
|
|
|
|
set -x -e
|
|
|
|
# Inputs, with defaults
|
|
|
|
: RUST_REPOSITORY ${RUST_REPOSITORY:=https://github.com/rust-lang/rust}
|
|
: RUST_BRANCH ${RUST_BRANCH:=stable}
|
|
|
|
: WORKSPACE ${WORKSPACE:=/home/worker}
|
|
|
|
set -v
|
|
|
|
# Check out rust sources
|
|
git clone $RUST_REPOSITORY -b $RUST_BRANCH ${WORKSPACE}/rust
|
|
|
|
# Report version
|
|
VERSION=$(git -C ${WORKSPACE}/rust describe --tags --dirty)
|
|
COMMIT=$(git -C ${WORKSPACE}/rust rev-parse HEAD)
|
|
echo "rust ${VERSION} (commit ${COMMIT})" | tee rust-version
|