devops: fix azure cli installation on ubuntu arm (#16131)
Turns out inistalling Azure CLI with `pip3` requires `gcc` installed.
This commit is contained in:
Родитель
307ce9e1e8
Коммит
a22446658c
|
@ -138,6 +138,10 @@ function ensure_docker_container {
|
|||
zip \
|
||||
unzip
|
||||
|
||||
if [[ "${BUILD_FLAVOR}" == *"-arm64" ]]; then
|
||||
apt-get install -y clang-12
|
||||
fi
|
||||
|
||||
# Ubuntu 18 installs Python 3.6 as Python3 by default; this, however,
|
||||
# fails to run Firefox build scripts.
|
||||
# Install Python3.8 instead on Ubuntu 18.04 as Python3.
|
||||
|
@ -167,6 +171,8 @@ function ensure_docker_container {
|
|||
# Install AZ CLI with Python since they do not ship
|
||||
# aarch64 to APT: https://github.com/Azure/azure-cli/issues/7368
|
||||
# Pin so future releases dont break us.
|
||||
# Note: azure-cli requires gcc to be installed on arm64 ubuntu.
|
||||
apt-get install -y gcc
|
||||
pip3 install azure-cli==2.38.0
|
||||
fi
|
||||
|
||||
|
@ -186,10 +192,6 @@ function ensure_docker_container {
|
|||
apt-get install -y gcc-8 g++-8
|
||||
fi
|
||||
|
||||
if [[ "${BUILD_FLAVOR}" == *"-arm64" ]]; then
|
||||
apt-get install -y clang-12
|
||||
fi
|
||||
|
||||
git config --system user.email "you@example.com"
|
||||
git config --system user.name "Your Name"
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче