From 513dbff12276ef591e623e6e95e7b7606483241d Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Thu, 23 Feb 2017 21:37:53 +0500 Subject: [PATCH] AppVeyor support --- appveyor.sh | 19 +++++++++++++++++++ appveyor.yml | 15 +++++++++++++++ 2 files changed, 34 insertions(+) create mode 100755 appveyor.sh create mode 100644 appveyor.yml diff --git a/appveyor.sh b/appveyor.sh new file mode 100755 index 0000000..67e8835 --- /dev/null +++ b/appveyor.sh @@ -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 diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..b3c9ef0 --- /dev/null +++ b/appveyor.yml @@ -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