appveyor.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. # copying the needed QT Dlls is now done post build. See the CMakeLists.txt file in the citra-qt folder
  22. - ps: >
  23. if (!"$env:APPVEYOR_PULL_REQUEST_TITLE" -and ("$env:APPVEYOR_REPO_BRANCH" -eq "master"))
  24. {
  25. $GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
  26. $GITREV = $(git show -s --format='%h')
  27. # Where are these spaces coming from? Regardless, let's remove them
  28. $BUILD_NAME = "citra-${GITDATE}-${GITREV}-windows-amd64.7z" -replace " ",""
  29. $BUILD_NAME_NOQT = "citra-noqt-${GITDATE}-${GITREV}-windows-amd64.7z" -replace " ",""
  30. # Zip up the build folder
  31. 7z a $BUILD_NAME .\build\bin\release\*
  32. # Do a second archive with only the binaries
  33. 7z a $BUILD_NAME_NOQT .\build\bin\release\*.exe
  34. # Download winscp
  35. Invoke-WebRequest "https://cdn.winscp.net/files/winscp573.zip?secure=yE1jHlRoBZTA0htWnu1OVQ==,1434405422" -OutFile "winscp573.zip"
  36. 7z e -y winscp573.zip
  37. # Upload to server
  38. .\WinSCP.com /command `
  39. "option batch abort" `
  40. "option confirm off" `
  41. "open sftp://citra-builds:${env:BUILD_PASSWORD}@builds.citra-emu.org -hostkey=*" `
  42. "put $BUILD_NAME /citra/nightly/windows-amd64/" `
  43. "put $BUILD_NAME_NOQT /citra/nightly/windows-noqt-amd64/" `
  44. "exit"
  45. }