summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Schulz <jasc@gmx.net>2016-01-16 12:44:34 +0100
committerNicolas Williams <nico@cryptonector.com>2016-01-16 17:02:43 -0600
commit4337fc5fe06c4ed699f856e34cfdc9f287010a55 (patch)
treebbd9723fa10d756fac2c9560cc48e8806315b87a
parent093d20c3b9d2f88e1e5782e2cc3c8ab0753ebf7d (diff)
Build on windows (mingw) on appveyor
For this to work, one of the core commiter should do: * enable appveyor in the github project (grant access) * Make an appveyor account and add the github jq repo as a new project inspirations from: appveyor, msys2, use bash environment to build... * https://github.com/ariscop/elemental-ircd/blob/appveyor/appveyor.yml * https://github.com/khaledhosny/ots/pull/67/files * https://github.com/universal-ctags/ctags/blob/master/appveyor.yml * https://github.com/universal-ctags/ctags/blob/master/win32/appveyor.bat and with mvsc * https://github.com/khaledhosny/ots/blob/master/.appveyor.yml Signed-off-by: Nicolas Williams <nico@cryptonector.com>
-rw-r--r--appveyor.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 00000000..ee9c60cf
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,35 @@
+environment:
+ matrix:
+ - Compiler: mingw
+
+
+install:
+ - set "PATH=C:\msys64\usr\bin;C:\msys64\mingw64\bin;C:\Windows\System32;C:\Windows;%PATH%"
+ - set MSYSTEM=MINGW64
+ # update mysy2
+ - C:\msys64\usr\bin\bash -lc "pacman --needed --noconfirm -Sy pacman-mirrors"
+ - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -Sy"
+ # this crashes?
+ #- C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-i686-toolchain"
+ - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S autoconf automake bison flex"
+ # install oniguruma
+ - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-i686-oniguruma mingw-w64-x86_64-oniguruma"
+
+
+build_script:
+ - bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && autoreconf -i"
+ - bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && ./configure --disable-shared --enable-static --enable-all-static"
+ - bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && make LDFLAGS=-lshlwapi"
+ - 7z a jq-package.zip jq.1 jq.exe
+ - bash -lc "exec 0</dev/null && cd $APPVEYOR_BUILD_FOLDER && pwd && ls -la"
+
+test_script:
+ - echo not run?
+
+artifacts:
+ - path: jq-package.zip
+ name: jq-package
+
+ - path: jq.exe
+ name: jq-exe
+