Skip to content

Commit aaaa4b1

Browse files
Retry download cygwin setup 4x with curl
-m 600 means don't spend more than 10 minutes (600 seconds) see curl manual https://curl.haxx.se/docs/manpage.html This was taken from appveyor docs https://www.appveyor.com/docs/how-to/download-file/
1 parent 4c5d003 commit aaaa4b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ cache:
113113
- .thirdparty-cache
114114

115115
install:
116-
- ps: 'Start-FileDownload "http://cygwin.com/setup-x86.exe" -FileName "setup-x86.exe"'
117-
- ps: 'Start-FileDownload "http://cygwin.com/setup-x86_64.exe" -FileName "setup-x86_64.exe"'
116+
- 'curl -fsS --retry 4 - m 600 -o "setup-x86.exe" "http://cygwin.com/setup-x86.exe" '
117+
- 'curl -fsS --retry 4 - m 600 -o "setup-x86_64.exe" "http://cygwin.com/setup-x86_64.exe" '
118118
- '%CYG_SETUP% -dgnqNO -R "%CYG_ROOT%" -s "%CYG_MIRROR%" -l "%CYG_ROOT%\var\cache\setup" -P mingw64-%MINGW_ARCH%-gcc-core,mingw64-%MINGW_ARCH%-gcc-g++,mingw64-%MINGW_ARCH%-headers,mingw64-%MINGW_ARCH%-runtime,zip,mingw64-%MINGW_ARCH%-clang,mingw64-%MINGW_ARCH%-openssl,libiconv-devel,libglib2.0-devel,perl,mingw64-%MINGW_ARCH%-zlib,make,cmake,wget,mingw64-%MINGW_ARCH%-win-iconv'
119119

120120
# Cygwin build script

0 commit comments

Comments
 (0)