.appveyor.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. version: 2.0.{build}
  2. environment:
  3. matrix:
  4. - solution_name: win32/sdlpal.sln
  5. BUILD_WIN32:
  6. BUILD_UWP: rem
  7. - solution_name: winrt/SDLPal.UWP.sln
  8. BUILD_WIN32: rem
  9. BUILD_UWP:
  10. build_script:
  11. - |
  12. %BUILD_WIN32% msbuild %solution_name% /p:Configuration=Release /m
  13. - |
  14. %BUILD_UWP% msbuild %solution_name% /p:Configuration=Release;AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM" /m
  15. before_build:
  16. # SDL include/lib setup; for win32
  17. - |-
  18. %BUILD_WIN32% appveyor DownloadFile http://www.libsdl.org/release/SDL2-devel-2.0.5-VC.zip
  19. %BUILD_WIN32% 7z x SDL2-devel-2.0.5-VC.zip
  20. %BUILD_WIN32% move /y SDL2-2.0.5\include SDL2\ > nul
  21. %BUILD_WIN32% move /y SDL2-2.0.5\lib SDL2\ > nul
  22. %BUILD_WIN32% rd /s /q SDL2-2.0.5 > nul
  23. # SDL src setup; for UWP
  24. - |-
  25. %BUILD_UWP% git submodule update --init 3rd/SDL
  26. deploy:
  27. - provider: GitHub
  28. on:
  29. appveyor_repo_tag: true
  30. auth_token:
  31. secure: RYDRqm5LncsJG32FRSlCkLzkJC4ykCtlgO3+xW4q80wQOA3U9pHAe2beyMEduJIe
  32. artifacts:
  33. - path: win32/Release/sdlpal.exe
  34. name: win32 build
  35. - path: winrt/AppPackages/SDLPal
  36. name: SDLPal UWP
  37. type: zip
  38. notifications:
  39. - provider: Webhook
  40. url: https://webhooks.gitter.im/e/2accb0e6e37119e604b3
  41. method: POST
  42. on_build_success: true
  43. on_build_failure: true
  44. on_build_status_changed: true