File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,8 +15,11 @@ skip_commits:
1515 - .travis.yml
1616 - ' *.md'
1717
18- # cache:
19- # - C:\msys64\var\cache\pacman\pkg\mingw-w64-x86_64-qt4* -> .appveyor.yml
18+ cache :
19+ # cache pacman packages
20+ # max cache size is 1 GB, which should be enough
21+ # but in case we could cache only mingw-w64-*-qt4-*
22+ - C:\msys64\var\cache\pacman\pkg\ -> .appveyor.yml
2023
2124install :
2225
@@ -43,7 +46,10 @@ install:
4346 # nevertheless the binary still exists in the repo (for the moment)
4447 # https://msys2.duckdns.org/repos
4548 # https://wiki.archlinux.org/index.php/offline_installation_of_packages
46- - bash -lc "cd /var/cache/pacman/pkg && wget http://repo.msys2.org/mingw/$MARCH/mingw-w64-$MARCH-qt4-4.8.7-4-any.pkg.tar.xz && pacman --noconfirm -U mingw-w64-$MARCH-qt4-4.8.7-4-any.pkg.tar.xz"
49+ #
50+ # download package directly into the local pacman packages directory, cached by AppVeyor
51+ # use "no-clobber" option for wget since the file could/should already be in the cache
52+ - bash -lc "cd /var/cache/pacman/pkg && wget -nc http://repo.msys2.org/mingw/$MARCH/mingw-w64-$MARCH-qt4-4.8.7-4-any.pkg.tar.xz && pacman --noconfirm -U mingw-w64-$MARCH-qt4-4.8.7-4-any.pkg.tar.xz"
4753
4854 # Set compiler (64bit)
4955 - set "CC=/c/msys64/mingw%MBITS%/bin/gcc.exe"
You can’t perform that action at this time.
0 commit comments