From a95dbdc461bd956145a2bf244f8b20342aa6836f Mon Sep 17 00:00:00 2001 From: Eduard Braun Date: Sat, 30 Sep 2017 21:29:31 +0200 Subject: CI/AppVeyor: Re-introduce full system upgrade It was disabled in 657285e593dc1b901203bd797c335e87672e3d26 to reduce build times. Unfortunately pacman does not update dependencies of installed packages, so if a dependency is already present on the build machine an outdated (and potentially incompatible) version will be used. For an example of such breakage, see https://github.com/Alexpux/MSYS2-packages/pull/1020 https://github.com/appveyor/ci/issues/1822 --- buildtools/appveyor.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/buildtools/appveyor.sh b/buildtools/appveyor.sh index 5dac1227f..d8dddb104 100644 --- a/buildtools/appveyor.sh +++ b/buildtools/appveyor.sh @@ -9,6 +9,13 @@ error() { echo -e "\e[1;31m\nError: ${1}\n\e[0m"; exit 1; } ### setup +# reduce time required to install packages by disabling pacman's disk space checking +sed -i 's/^CheckSpace/#CheckSpace/g' /etc/pacman.conf + +# update MSYS2-packages and MINGW-packages (but only for current architecture) +pacman -Quq | grep -v mingw-w64- | xargs pacman -S --needed --noconfirm --noprogressbar +pacman -Quq | grep ${MINGW_PACKAGE_PREFIX} | xargs pacman -S --needed --noconfirm --noprogressbar + # do everything in /build cd "$(cygpath ${APPVEYOR_BUILD_FOLDER})" mkdir build -- cgit v1.2.3