diff --git a/.appveyor.yml b/.appveyor.yml index 59702dd3..7641ecaa 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -21,3 +21,10 @@ build_script: test_script: - '%APPVEYOR_BUILD_FOLDER%\test\test_libpostal.exe' + +after_build: + - 7z a libpostal.zip %APPVEYOR_BUILD_FOLDER%\libpostal.dll %APPVEYOR_BUILD_FOLDER%\libpostal.def %APPVEYOR_BUILD_FOLDER%\libpostal.exp %APPVEYOR_BUILD_FOLDER%\libpostal.lib + +artifacts: + - path: libpostal.zip + name: libpostal diff --git a/win_build.bat b/win_build.bat index f8f1b7b5..8b0db748 100644 --- a/win_build.bat +++ b/win_build.bat @@ -19,4 +19,6 @@ IF %COMPILER%==msys2 ( bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./configure --datadir=/c" bash -lc "cd $APPVEYOR_BUILD_FOLDER && make" bash -lc "cd $APPVEYOR_BUILD_FOLDER && make install" + bash -lc "cd $APPVEYOR_BUILD_FOLDER && cp src/.libs/libpostal-*.dll libpostal.dll" + "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\lib.exe" /def:libpostal.def /out:libpostal.lib /machine:x64 )