appveyor.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # shallow clone
  2. clone_depth: 5
  3. environment:
  4. QTDIR: C:\Qt\5.4\msvc2013_64_opengl
  5. BUILD_PASSWORD:
  6. secure: EXGNlWKJsCtbeImEJ5EP9qrxZ+EqUFfNy+CP61nDOMA=
  7. platform:
  8. - x64
  9. configuration:
  10. - Release
  11. install:
  12. - git submodule update --init --recursive
  13. before_build:
  14. - mkdir build
  15. - cd build
  16. - cmake -G "Visual Studio 12 Win64" ..
  17. - cd ..
  18. after_build:
  19. # copying the needed QT Dlls is now done post build. See the CMakeLists.txt file in the citra-qt folder
  20. - ps: >
  21. if (!"$env:APPVEYOR_PULL_REQUEST_TITLE" -and ("$env:APPVEYOR_REPO_BRANCH" -eq "master"))
  22. {
  23. $GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
  24. $GITREV = $(git show -s --format='%h')
  25. # Where are these spaces coming from? Regardless, let's remove them
  26. $BUILD_NAME = "citra-${GITDATE}-${GITREV}-windows-amd64.7z" -replace " ",""
  27. $BUILD_NAME_NOQT = "citra-noqt-${GITDATE}-${GITREV}-windows-amd64.7z" -replace " ",""
  28. # Zip up the build folder
  29. 7z a $BUILD_NAME .\build\bin\release\*
  30. # Do a second archive with only the binaries
  31. 7z a $BUILD_NAME_NOQT .\build\bin\release\*.exe
  32. # Download winscp
  33. Invoke-WebRequest "http://iweb.dl.sourceforge.net/project/winscp/WinSCP/5.7.3/winscp573.zip" -OutFile "winscp573.zip"
  34. 7z e -y winscp573.zip
  35. # Upload to server
  36. .\WinSCP.com /command `
  37. "option batch abort" `
  38. "option confirm off" `
  39. "open sftp://citra-builds:${env:BUILD_PASSWORD}@builds.citra-emu.org -hostkey=*" `
  40. "put $BUILD_NAME /citra/nightly/windows-amd64/" `
  41. "put $BUILD_NAME_NOQT /citra/nightly/windows-noqt-amd64/" `
  42. "exit"
  43. }