Merge pull request #135 from chipitsine/master

AppVeyor support
pull/141/head
Samuli Seppänen 2017-02-28 11:43:56 +02:00 committed by GitHub
commit 8eda780b6f
2 changed files with 34 additions and 0 deletions

19
appveyor.sh Executable file
View File

@ -0,0 +1,19 @@
autoreconf -iv
unset CC
unset CXX
if [ "${ARCH}" = "x86" ]; then
export ABBR="i686"
export CHOST="i686-w64-mingw32"
fi
if [ "${ARCH}" = "x86_64" ]; then
export ABBR="x86_64"
export CHOST="x86_64-w64-mingw32"
fi
export CC=${ABBR}-w64-mingw32-gcc
./configure --prefix=/ --libdir=/lib --host=$CHOST --build=i686-pc-cygwin --program-prefix=''
make

15
appveyor.yml Normal file
View File

@ -0,0 +1,15 @@
version: "cygwin-{build}"
environment:
matrix:
- ARCH: x86
CYGWIN: C:\Cygwin
- ARCH: x86_64
CYGWIN: C:\Cygwin64
build_script:
- "%CYGWIN%\\setup-%ARCH%.exe -q -P mingw64-i686-openssl,mingw64-x86_64-openssl,mingw64-i686-gcc-core,mingw64-x86_64-gcc-core,cygwin-devel"
- "%CYGWIN%\\bin\\bash -lc 'cd /cygdrive/c/projects/%APPVEYOR_PROJECT_NAME% ; ./appveyor.sh'"
artifacts:
- path: openvpn-gui.exe