appveyor.yml 1.9 KB

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