3 CYGWIN_ROOT: C:\cygwin64
4 CYGWIN_MIRROR: http://cygwin.mirror.constant.com
7 - HOST: i686-w64-mingw32
8 - HOST: x86_64-w64-mingw32
10 - if "%HOST%"=="i686-w64-mingw32" set PKGARCH="mingw64-i686"
11 - if "%HOST%"=="x86_64-w64-mingw32" set PKGARCH="mingw64-x86_64"
12 - if NOT DEFINED PKGARCH exit 1
13 - set SETUP=setup-x86_64.exe
14 - appveyor DownloadFile http://cygwin.com/%SETUP% -FileName %CYGWIN_ROOT%\%SETUP%
15 - echo Updating Cygwin and installing build prerequisites
16 - "%CYGWIN_ROOT%\\%SETUP% -qnNdO -R %CYGWIN_ROOT% -s %CYGWIN_MIRROR% -l %CYGWIN_CACHE% -g -P \
35 - '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER; ./bootstrap.sh --host=%HOST%"'
37 - '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER; make"'
39 - '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER; export PATH=/usr/${HOST}/sys-root/mingw/bin/:${PATH} ; make check"'
41 - '%CYGWIN_ROOT%/bin/bash -lc "cd $APPVEYOR_BUILD_FOLDER; make strip upx"'