devops: fix firefox arm64 builds (#16157)
Turns out the `/etc/environment` is not read for non-login shells, so we have to source rust & cargo installation explicitly.
This commit is contained in:
parent
b34da61524
commit
1ef1e1f5bd
|
|
@ -212,6 +212,11 @@ elif [[ "$2" == "compile" ]]; then
|
||||||
export CC=/usr/bin/clang-12
|
export CC=/usr/bin/clang-12
|
||||||
export CXX=/usr/bin/clang++-12
|
export CXX=/usr/bin/clang++-12
|
||||||
fi
|
fi
|
||||||
|
# For non-login non-interactive shells, we have to source
|
||||||
|
# cargo env explicitly since /env/environment is not read.
|
||||||
|
if [[ -f "$HOME/.cargo/env" ]]; then
|
||||||
|
source "$HOME/.cargo/env"
|
||||||
|
fi
|
||||||
./browser_patches/checkout_build_archive_upload.sh "${BUILD_FLAVOR}"
|
./browser_patches/checkout_build_archive_upload.sh "${BUILD_FLAVOR}"
|
||||||
'
|
'
|
||||||
elif [[ "$2" == "enter" || -z "$2" ]]; then
|
elif [[ "$2" == "enter" || -z "$2" ]]; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue