devops(firefox): fixate rust and cbindgen version (#3223)

Firefox buildchain does not fixate `rust` and `cbindgen` versions,
so we want to fixate them on our end.

A table with matching rust version for every firefox version can
be found at [Rust Update Policy for Firefox](https://wiki.mozilla.org/Rust_Update_Policy_for_Firefox).

Additionally, there are checks in `mozbuild` for the minimum
rust version and minimum `cbindgen` version.
This commit is contained in:
Andrey Lushnikov 2020-07-30 09:59:39 -07:00 committed by GitHub
parent e09132527d
commit 4961c2ddbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -1,2 +1,2 @@
1144
Changed: joel.einbinder@gmail.com Tue 28 Jul 2020 01:41:10 PM PDT
1145
Changed: lushnikov@chromium.org Wed 29 Jul 2020 17:27:10 PM PDT

View file

@ -2,6 +2,9 @@
set -e
set +x
RUST_VERSION="1.42.0"
CBINDGEN_VERSION="0.14.1"
trap "cd $(pwd -P)" EXIT
cd "$(dirname $0)"
cd "checkout"
@ -41,6 +44,12 @@ echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/${OBJ_FOLDER}" >> .mozconfig
if [[ $1 == "--juggler" ]]; then
./mach build faster
else
# We manage Rust version ourselves.
echo "-- Using rust v${RUST_VERSION}"
rustup default "${RUST_VERSION}"
echo "-- Using cbindgen v${CBINDGEN_VERSION}"
cargo install cbindgen --version "${CBINDGEN_VERSION}"
./mach build
fi