appveyor.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # it seems that Qt is only installed by default on unstable os at the moment
  2. os: unstable
  3. # shallow clone
  4. clone_depth: 5
  5. environment:
  6. QTDIR: C:\Qt\5.4\msvc2013_64_opengl
  7. BUILD_PASSWORD:
  8. secure: EXGNlWKJsCtbeImEJ5EP9qrxZ+EqUFfNy+CP61nDOMA=
  9. platform:
  10. - x64
  11. configuration:
  12. - Release
  13. install:
  14. - git submodule update --init --recursive --depth 20
  15. before_build:
  16. - mkdir build
  17. - cd build
  18. - cmake -G "Visual Studio 12 Win64" ..
  19. - cd ..
  20. after_build:
  21. # copy the qt dlls
  22. - copy C:\Qt\5.4\msvc2013_64_opengl\bin\icudt53.dll build\bin\release
  23. - copy C:\Qt\5.4\msvc2013_64_opengl\bin\icuin53.dll build\bin\release
  24. - copy C:\Qt\5.4\msvc2013_64_opengl\bin\icuuc53.dll build\bin\release
  25. - copy C:\Qt\5.4\msvc2013_64_opengl\bin\Qt5Core.dll build\bin\release
  26. - copy C:\Qt\5.4\msvc2013_64_opengl\bin\Qt5Gui.dll build\bin\release
  27. - copy C:\Qt\5.4\msvc2013_64_opengl\bin\Qt5OpenGL.dll build\bin\release
  28. - copy C:\Qt\5.4\msvc2013_64_opengl\bin\Qt5Widgets.dll build\bin\release
  29. - mkdir build\bin\release\platforms\
  30. - copy C:\Qt\5.4\msvc2013_64_opengl\plugins\platforms\qwindows.dll build\bin\release\platforms
  31. - ps: >
  32. if (!"$env:APPVEYOR_PULL_REQUEST_TITLE" -and ("$env:APPVEYOR_REPO_BRANCH" -eq "master"))
  33. {
  34. $GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
  35. $GITREV = git show -s --format='%h'
  36. $BUILD_NAME = "citra-${GITDATE}-${GITREV}-windows-amd64.7z"
  37. # zip up the build folder
  38. 7z a $BUILD_NAME .\build\bin\release\*
  39. # download winscp
  40. Invoke-WebRequest "http://hivelocity.dl.sourceforge.net/project/winscp/WinSCP/5.7/winscp570.zip" -OutFile "winscp570.zip"
  41. 7z e -y winscp570.zip
  42. # upload to server
  43. .\WinSCP.com /command `
  44. "option batch abort" `
  45. "option confirm off" `
  46. "open sftp://citra-builds:${env:BUILD_PASSWORD}@builds.citra-emu.org -hostkey=*" `
  47. "put $BUILD_NAME /citra/nightly/windows-amd64/" `
  48. "exit"
  49. }