#!/bin/bash set -e set -o xtrace export DEBIAN_FRONTEND=noninteractive CROSS_ARCHITECTURES="i386" for arch in $CROSS_ARCHITECTURES; do dpkg --add-architecture $arch done apt-get install -y \ ca-certificates \ gnupg \ unzip \ wget # Upstream LLVM package repository apt-key add .gitlab-ci/container/llvm-snapshot.gpg.key echo "deb https://apt.llvm.org/buster/ llvm-toolchain-buster-9 main" >/etc/apt/sources.list.d/llvm9.list sed -i -e 's/http:\/\/deb/https:\/\/deb/g' /etc/apt/sources.list echo 'deb https://deb.debian.org/debian buster-backports main' >/etc/apt/sources.list.d/backports.list apt-get update # Use newer packages from backports by default cat >/etc/apt/preferences </usr/local/bin/x86_64-w64-mingw32-pkg-config <