appveyor.yml 1.8 KB

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