From 8f5a81cdd8a75e19dc1212c30a292de34321e1bd Mon Sep 17 00:00:00 2001 From: R4SAS Date: Tue, 13 Oct 2020 10:29:50 +0300 Subject: [PATCH] change cache path and clean pacman cache after build --- appveyor.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index c1b3718e..fbc81a28 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -14,7 +14,6 @@ matrix: fast_finish: true environment: - CCACHE_DIR: "%APPVEYOR_BUILD_FOLDER%\\.ccache" APPVEYOR_SAVE_CACHE_ON_ERROR: true MSYS2_PATH_TYPE: inherit CHERE_INVOKING: enabled_from_arguments @@ -27,7 +26,7 @@ environment: MSYS_BITNESS: 32 cache: - - .ccache + - c:\msys64\var\cache\pacman\pkg\ install: # install new signing keyring @@ -41,10 +40,6 @@ install: - c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu" # Kill bash before next try - taskkill /T /F /IM bash.exe /IM gpg.exe /IM gpg-agent.exe | exit /B 0 -# rewrite mirrorlist again because pacman update can rewrite it -- c:\msys64\usr\bin\bash -lc "echo 'Server = https://mirror.yandex.ru/mirrors/msys2/mingw/x86_64/' > /etc/pacman.d/mirrorlist.mingw64" -- c:\msys64\usr\bin\bash -lc "echo 'Server = https://mirror.yandex.ru/mirrors/msys2/mingw/i686/' > /etc/pacman.d/mirrorlist.mingw32" -- c:\msys64\usr\bin\bash -lc "echo 'Server = https://mirror.yandex.ru/mirrors/msys2/msys/$arch/' > /etc/pacman.d/mirrorlist.msys" # update packages and install required - c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu ${MSYS_PACKAGES}" @@ -53,6 +48,9 @@ build_script: - c:\msys64\usr\bin\bash -lc "make USE_UPNP=yes -j3" - 7z a -tzip -mx9 -mmt i2pd-mingw-win%MSYS_BITNESS%.zip i2pd.exe +after_build: +- c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Sc" + test: off deploy: off