vcpkg/scripts/azure-pipelines/linux/provision-image.sh
Billy O'Neal 62d01b70df
Update VMs for November Patch Tuesday (#27718)
* Cherry pick new KDF5 dependencies from #27454

* Update PowerShell Core to 7.3.0

* PASSING, REMOVE FROM FAIL LIST: cgicc:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).

PASSING, REMOVE FROM FAIL LIST: cgicc:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: soci:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: soci:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: spirv-tools:arm-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).
PASSING, REMOVE FROM FAIL LIST: spirv-tools:x64-uwp (C:\a\1\s\scripts\azure-pipelines/../ci.baseline.txt).

* Add a Windows 10 SDK that CMake requires for uwp projects.

* Update pools.

* [hunspell] Remove deprecated minimal rebuild switch.

Fixes build break first detected in: https://github.com/microsoft/vcpkg/pull/27718

Submitted upstream as: https://github.com/hunspell/hunspell/pull/890

* [rttr] Add upstream patch for missing #include<string>

Resolves build failure detected in https://github.com/microsoft/vcpkg/pull/27718

* [chakracore] Avoid race condition on generated headers.
2022-11-25 02:00:21 -08:00

108 lines
3.5 KiB
Bash
Executable File

#!/bin/bash
# Copyright (c) Microsoft Corporation.
# SPDX-License-Identifier: MIT
#
export DEBIAN_FRONTEND=noninteractive
# Add apt repos
## CUDA
apt-key del 7fa2af80
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin
mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
## PowerShell
wget -q https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb
dpkg -i packages-microsoft-prod.deb
rm -f packages-microsoft-prod.deb
add-apt-repository universe
apt-get -y update
apt-get -y dist-upgrade
# Add apt packages
## vcpkg prerequisites
APT_PACKAGES="git curl zip unzip tar"
## common build dependencies
APT_PACKAGES="$APT_PACKAGES at libxt-dev gperf libxaw7-dev cifs-utils \
build-essential g++ gfortran libx11-dev libxkbcommon-x11-dev libxi-dev \
libgl1-mesa-dev libglu1-mesa-dev mesa-common-dev libxinerama-dev libxxf86vm-dev \
libxcursor-dev yasm libnuma1 libnuma-dev libtool-bin \
flex bison libbison-dev autoconf libudev-dev libncurses5-dev libtool libxrandr-dev \
xutils-dev dh-autoreconf autoconf-archive libgles2-mesa-dev ruby-full \
pkg-config meson nasm cmake ninja-build"
## required by qt5-base
APT_PACKAGES="$APT_PACKAGES libxext-dev libxfixes-dev libxrender-dev \
libxcb1-dev libx11-xcb-dev libxcb-glx0-dev libxcb-util0-dev"
## required by qt5-base for qt5-x11extras
APT_PACKAGES="$APT_PACKAGES libxkbcommon-dev libxcb-keysyms1-dev \
libxcb-image0-dev libxcb-shm0-dev libxcb-icccm4-dev libxcb-sync-dev \
libxcb-xfixes0-dev libxcb-shape0-dev libxcb-randr0-dev \
libxcb-render-util0-dev libxcb-xinerama0-dev libxcb-xkb-dev libxcb-xinput-dev"
## required by libhdfs3
APT_PACKAGES="$APT_PACKAGES libkrb5-dev"
## required by kf5windowsystem
APT_PACKAGES="$APT_PACKAGES libxcb-res0-dev"
## required by kf5globalaccel
APT_PACKAGES="$APT_PACKAGES libxcb-keysyms1-dev libxcb-xkb-dev libxcb-record0-dev"
## required by mesa
APT_PACKAGES="$APT_PACKAGES python3-setuptools python3-mako"
## required by some packages to install additional python packages
APT_PACKAGES="$APT_PACKAGES python3-pip python3-venv"
## required by qtwebengine
APT_PACKAGES="$APT_PACKAGES nodejs"
## required by qtwayland
APT_PACKAGES="$APT_PACKAGES libwayland-dev"
## required by all GN projects
APT_PACKAGES="$APT_PACKAGES python2 python-is-python3"
## required by libctl
APT_PACKAGES="$APT_PACKAGES guile-2.2-dev"
## required by gtk
APT_PACKAGES="$APT_PACKAGES libxdamage-dev"
## required by gtk3 and at-spi2-atk
APT_PACKAGES="$APT_PACKAGES libdbus-1-dev"
## required by at-spi2-atk
APT_PACKAGES="$APT_PACKAGES libxtst-dev"
## required by bond
APT_PACKAGES="$APT_PACKAGES haskell-stack"
## required by duktape
APT_PACKAGES="$APT_PACKAGES python-yaml"
## CUDA
APT_PACKAGES="$APT_PACKAGES cuda-compiler-11-6 cuda-libraries-dev-11-6 cuda-driver-dev-11-6 \
cuda-cudart-dev-11-6 libcublas-11-6 libcurand-dev-11-6 cuda-nvml-dev-11-6 libcudnn8-dev libnccl2 \
libnccl-dev"
## PowerShell
APT_PACKAGES="$APT_PACKAGES powershell"
## Additionally required/installed by Azure DevOps Scale Set Agents, skip on WSL
if [[ $(grep microsoft /proc/version) ]]; then
echo "Skipping install of ADO prerequisites on WSL."
else
APT_PACKAGES="$APT_PACKAGES libkrb5-3 zlib1g libicu66"
fi
apt-get -y --no-install-recommends install $APT_PACKAGES