gecko-dev/taskcluster/ci/toolchain/rust.yml
Nick Alexander e09210e873 Bug 1534533 - Add geckodriver toolchain tasks. r=chmanchester
There was quite a bit of discussion of this in `#build` on IRC,
and the consensus was that geckodriver should be built as a
stand-alone Rust crate and not as part of Firefox/Gecko (say, as a new
--enable-project target). This follows that approach, and the
expression, modeled off of cbindgen but updated to cross compile from
a Linux host to all targets, is pretty straight-forward.

A sparse profile would be nice, but the way that the Gecko Cargo
workspace works means that the profile must accumulate Rust code from
many locations.

If we want to, eventually testing/geckodriver can be removed from the
top-level Rust workspace, the geckodriver-signing tasks migrated to
these toolchain tasks, consumers migrated to the signing tasks, and
geckodriver removed from the "common" test archive.

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

--HG--
rename : taskcluster/scripts/misc/vs-setup.sh => taskcluster/scripts/misc/vs-setup32.sh
extra : moz-landing-system : lando
2019-08-28 20:54:06 +00:00

314 lines
9.2 KiB
YAML

# 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: "rust repack"
worker-type: b-linux
worker:
max-run-time: 7200
run:
script: repack_rust.py
toolchain-artifact: public/build/rustc.tar.xz
linux64-rust-1.28:
treeherder:
symbol: TL(rust-1.28)
run:
arguments: [
'--channel', '1.28.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'i686-unknown-linux-gnu',
]
linux64-rust-1.31:
treeherder:
symbol: TL(rust-1.31)
run:
arguments: [
'--channel', '1.31.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'i686-unknown-linux-gnu',
]
linux64-rust-1.32:
treeherder:
symbol: TL(rust-1.32)
run:
arguments: [
'--channel', '1.32.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'i686-unknown-linux-gnu',
'--target', 'aarch64-unknown-linux-gnu',
]
linux64-rust-1.34:
treeherder:
symbol: TL(rust-1.34)
run:
arguments: [
'--channel', '1.34.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'i686-unknown-linux-gnu',
'--target', 'aarch64-unknown-linux-gnu',
]
linux64-rust-1.35:
treeherder:
symbol: TL(rust-1.35)
run:
arguments: [
'--channel', '1.35.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'i686-unknown-linux-gnu',
'--target', 'aarch64-unknown-linux-gnu',
]
linux64-rust-1.36:
treeherder:
symbol: TL(rust-1.36)
run:
arguments: [
'--channel', '1.36.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'i686-unknown-linux-gnu',
'--target', 'aarch64-unknown-linux-gnu',
]
linux64-rust-1.37:
treeherder:
symbol: TL(rust)
run:
arguments: [
'--channel', '1.37.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'i686-unknown-linux-gnu',
'--target', 'aarch64-unknown-linux-gnu',
]
toolchain-alias: linux64-rust
linux64-rust-nightly:
description: "rust nightly repack"
treeherder:
symbol: TL(rust-nightly)
run:
arguments: [
'--channel', 'nightly-2019-06-28',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'i686-unknown-linux-gnu',
]
linux64-rust-macos-1.31:
description: "rust repack with macos-cross support"
treeherder:
symbol: TL(rust-macos-1.31)
run:
arguments: [
'--channel', '1.31.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-apple-darwin',
]
linux64-rust-macos-1.32:
description: "rust repack with macos-cross support"
treeherder:
symbol: TL(rust-macos-1.32)
run:
arguments: [
'--channel', '1.32.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-apple-darwin',
]
linux64-rust-macos-1.34:
description: "rust repack with macos-cross support"
treeherder:
symbol: TL(rust-macos-1.34)
run:
arguments: [
'--channel', '1.34.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-apple-darwin',
]
linux64-rust-macos-1.35:
description: "rust repack with macos-cross support"
treeherder:
symbol: TL(rust-macos-1.35)
run:
arguments: [
'--channel', '1.35.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-apple-darwin',
]
linux64-rust-cross-1.37:
description: "rust repack with macos and windows cross support"
treeherder:
symbol: TL(rust-cross)
run:
arguments: [
'--channel', '1.37.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-apple-darwin',
'--target', 'x86_64-pc-windows-msvc',
'--target', 'i686-pc-windows-msvc',
'--target', 'aarch64-pc-windows-msvc',
]
linux64-rust-macos-1.36:
description: "rust repack with macos-cross support"
treeherder:
symbol: TL(rust-macos-1.36)
run:
arguments: [
'--channel', '1.36.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-apple-darwin',
]
linux64-rust-macos-1.37:
description: "rust repack with macos-cross support"
treeherder:
symbol: TL(rust-macos)
run:
arguments: [
'--channel', '1.37.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-apple-darwin',
]
toolchain-alias: linux64-rust-macos
linux64-rust-nightly-macos:
description: "rust nightly repack with macos-cross support"
treeherder:
symbol: TL(rust-nightly-macos)
run:
arguments: [
'--channel', 'nightly-2019-06-28',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-apple-darwin',
]
linux64-rust-android-1.37:
description: "rust repack with android-cross support"
treeherder:
symbol: TL(rust-android)
run:
arguments: [
'--channel', '1.37.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'armv7-linux-androideabi',
'--target', 'thumbv7neon-linux-androideabi',
'--target', 'aarch64-linux-android',
'--target', 'i686-linux-android',
'--target', 'x86_64-linux-android',
]
toolchain-alias: linux64-rust-android
linux64-rust-windows-1.37:
description: "rust repack with windows-cross support"
treeherder:
symbol: TL(rust-win)
run:
arguments: [
'--channel', '1.37.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-unknown-linux-gnu',
'--target', 'x86_64-pc-windows-msvc',
'--target', 'i686-pc-windows-msvc',
]
toolchain-alias: linux64-rust-windows
win64-rust-1.28:
treeherder:
symbol: TW64(rust-1.28)
run:
arguments: [
'--channel', '1.28.0',
'--host', 'x86_64-pc-windows-msvc',
'--target', 'x86_64-pc-windows-msvc',
'--target', 'i686-pc-windows-msvc',
]
win64-rust-1.34:
treeherder:
symbol: TW64(rust-1.34)
run:
arguments: [
'--channel', '1.34.0',
'--host', 'x86_64-pc-windows-msvc',
'--target', 'x86_64-pc-windows-msvc',
'--target', 'i686-pc-windows-msvc',
'--target', 'aarch64-pc-windows-msvc',
]
win64-rust-1.37:
treeherder:
symbol: TW64(rust)
run:
arguments: [
'--channel', '1.37.0',
'--host', 'x86_64-pc-windows-msvc',
'--target', 'x86_64-pc-windows-msvc',
'--target', 'i686-pc-windows-msvc',
'--target', 'aarch64-pc-windows-msvc',
]
toolchain-alias: win64-rust
win64-rust-nightly:
description: "rust nightly repack"
treeherder:
symbol: TW64(rust-nightly)
run:
arguments: [
'--channel', 'nightly-2019-06-28',
'--host', 'x86_64-pc-windows-msvc',
'--target', 'x86_64-pc-windows-msvc',
'--target', 'i686-pc-windows-msvc',
]
mingw32-rust-1.31:
treeherder:
symbol: TMW(rust-1.31)
run:
arguments: [
'--channel', '1.31.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'i686-unknown-linux-gnu',
'--target', 'i686-pc-windows-gnu',
'--target', 'x86_64-pc-windows-gnu',
'--target', 'x86_64-unknown-linux-gnu',
]
mingw32-rust-1.37:
treeherder:
symbol: TMW(rust)
run:
arguments: [
'--channel', '1.37.0',
'--host', 'x86_64-unknown-linux-gnu',
'--target', 'i686-unknown-linux-gnu',
'--target', 'i686-pc-windows-gnu',
'--target', 'x86_64-pc-windows-gnu',
'--target', 'x86_64-unknown-linux-gnu',
]
toolchain-alias: mingw32-rust