2 # Download and install MSYS2, needed primarily for the test suite (run-make) but
3 # also used by the MinGW toolchain for assembling things.
5 # FIXME: we should probe the default azure image and see if we can use the MSYS2
6 # toolchain there. (if there's even one there). For now though this gets the job
12 source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"
15 for RETRY_COUNT in 1 2 3 4 5 6 7 8 9 10; do
17 --params="/InstallDir:$(ciCheckoutPath)/msys2 /NoPath" -y --no-progress \
18 && mkdir -p "$(ciCheckoutPath)/msys2/home/${USERNAME}" \
19 && ciCommandAddPath "$(ciCheckoutPath)/msys2/usr/bin" && break