diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2019-11-27 14:58:12 +0000 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2019-12-06 09:42:52 +0000 |
commit | 266b67e2a71be2932c655c70ac27bbbee8175382 (patch) | |
tree | 33f5ff417aff809188b7259c86c5a0fab04d90b2 | |
parent | 9a36133b85de65ad329250238b4820cb87d36eaf (diff) |
ci: Integrate with AppVeyor
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r-- | appveyor.yml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..b6462f6 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,38 @@ +configuration: Release + +cache: c:\Tools\vcpkg\installed\ + +environment: + VCPKG_ROOT: c:\Tools\vcpkg + +install: +- git submodule update --init --recursive +- mkdir build32 +- mkdir build64 +- cd %VCPKG_ROOT% +- git pull +- .\bootstrap-vcpkg.bat +- vcpkg install libpng:x64-windows-static libpng:x86-windows-static + +build_script: +- cd %APPVEYOR_BUILD_FOLDER%\build64 +- cmake -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%\scripts\buildsystems\vcpkg.cmake -A x64 -DVCPKG_TARGET_TRIPLET=x64-windows-static .. +- cmake --build . --config Release + +- cd %APPVEYOR_BUILD_FOLDER%\build32 +- cmake -DCMAKE_TOOLCHAIN_FILE=%VCPKG_ROOT%\scripts\buildsystems\vcpkg.cmake -A Win32 -DVCPKG_TARGET_TRIPLET=x86-windows-static .. +- cmake --build . --config Release + +after_build: +- cd %APPVEYOR_BUILD_FOLDER%\build64 +- 7z a vdagent-win-x64.zip Release\* + +- cd %APPVEYOR_BUILD_FOLDER%\build32 +- 7z a vdagent-win-x86.zip Release\* + +artifacts: +- path: build64/vdagent-win-x64.zip + name: VdAgentWin-x64 + +- path: build32/vdagent-win-x86.zip + name: VdAgentWin-x86 |