appveyor.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. # Where are these spaces coming from? Regardless, let's remove them
  37. $BUILD_NAME = "citra-${GITDATE}-${GITREV}-windows-amd64.7z" -replace " ",""
  38. # Zip up the build folder
  39. 7z a $BUILD_NAME .\build\bin\release\*
  40. # Download winscp
  41. Invoke-WebRequest "http://hivelocity.dl.sourceforge.net/project/winscp/WinSCP/5.7/winscp570.zip" -OutFile "winscp570.zip"
  42. 7z e -y winscp570.zip
  43. # Upload to server
  44. .\WinSCP.com /command `
  45. "option batch abort" `
  46. "option confirm off" `
  47. "open sftp://citra-builds:${env:BUILD_PASSWORD}@builds.citra-emu.org -hostkey=*" `
  48. "put $BUILD_NAME /citra/nightly/windows-amd64/" `
  49. "exit"
  50. }