diff options
author | Tony Kelman <tony@kelman.net> | 2015-03-04 11:31:24 -0800 |
---|---|---|
committer | Tony Kelman <tony@kelman.net> | 2015-03-04 16:52:37 -0800 |
commit | 4c88fd7ce6a385fa313e93d4e1f594f29ccf1a36 (patch) | |
tree | d250a68bdf0a11cce0418b0065319b0b4112eb81 /script | |
parent | ba6c53b91b1d9c9dc49b7c0d8e8efbd9842c31dc (diff) | |
download | libgit2-4c88fd7ce6a385fa313e93d4e1f594f29ccf1a36.tar.gz |
Add MinGW-w64 to matrix
cache mingw-w64 downloads
quiet curl and 7zip
run appveyor steps in cmd for mingw
Diffstat (limited to 'script')
-rwxr-xr-x | script/appveyor-mingw.sh | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/script/appveyor-mingw.sh b/script/appveyor-mingw.sh index aaafa4903..48e0bad0a 100755 --- a/script/appveyor-mingw.sh +++ b/script/appveyor-mingw.sh @@ -1,6 +1,23 @@ #!/bin/sh set -e -cd `dirname "$0"`/../build -echo 'C:\MinGW\ /MinGW' > /etc/fstab +cd `dirname "$0"`/.. +if [ "$ARCH" = "32" ]; then + echo 'C:\MinGW\ /MinGW' > /etc/fstab +elif [ "$ARCH" = "i686" ]; then + f=i686-4.9.2-release-win32-sjlj-rt_v3-rev1.7z + if ! [ -e $f ]; then + curl -LsSO http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.9.2/threads-win32/sjlj/$f + fi + 7z x $f > /dev/null + mv mingw32 /MinGW +else + f=x86_64-4.9.2-release-win32-seh-rt_v3-rev1.7z + if ! [ -e $f ]; then + curl -LsSO http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/4.9.2/threads-win32/seh/$f + fi + 7z x $f > /dev/null + mv mingw64 /MinGW +fi +cd build cmake -D ENABLE_TRACE=ON -D BUILD_CLAR=ON .. -G"$GENERATOR" cmake --build . --config RelWithDebInfo |