appveyor.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # shallow clone
  2. clone_depth: 10
  3. # don't build on tag
  4. skip_tags: true
  5. cache:
  6. - C:\ProgramData\chocolatey\bin -> appveyor.yml
  7. - C:\ProgramData\chocolatey\lib -> appveyor.yml
  8. os: Visual Studio 2015
  9. platform:
  10. - x64
  11. configuration:
  12. - Release
  13. install:
  14. - git submodule update --init --recursive
  15. before_build:
  16. # Xamarin log spam workaround
  17. - del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
  18. - mkdir build
  19. - cd build
  20. - cmake -G "Visual Studio 14 2015 Win64" -DCITRA_USE_BUNDLED_QT=1 -DCITRA_USE_BUNDLED_SDL2=1 ..
  21. - cd ..
  22. build:
  23. project: build/citra.sln
  24. parallel: true
  25. after_build:
  26. - ps: |
  27. $GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
  28. $GITREV = $(git show -s --format='%h')
  29. $GIT_LONG_HASH = $(git rev-parse HEAD)
  30. # Where are these spaces coming from? Regardless, let's remove them
  31. $MSVC_BUILD_NAME = "citra-windows-msvc-$GITDATE-$GITREV.zip" -replace " ", ""
  32. $MSVC_BUILD_PDB = "citra-windows-msvc-$GITDATE-$GITREV-debugsymbols.zip" -replace " ", ""
  33. $BINTRAY_VERSION = "nightly-$GIT_LONG_HASH" -replace " ", ""
  34. # set the build names as env vars so the artifacts can upload them
  35. $env:MSVC_BUILD_NAME = $MSVC_BUILD_NAME
  36. $env:MSVC_BUILD_PDB = $MSVC_BUILD_PDB
  37. $env:GITREV = $GITREV
  38. 7z a -tzip $MSVC_BUILD_PDB .\build\bin\release\*.pdb
  39. rm .\build\bin\release\*.pdb
  40. 7z a -tzip $MSVC_BUILD_NAME .\build\bin\release\* .\license.txt .\README.md
  41. test_script:
  42. - cd build && ctest -VV -C Release && cd ..
  43. artifacts:
  44. - path: $(MSVC_BUILD_NAME)
  45. name: msvcbuild
  46. type: zip
  47. - path: $(MSVC_BUILD_PDB)
  48. name: msvcdebug
  49. type: zip
  50. deploy:
  51. provider: GitHub
  52. release: nightly-$(appveyor_build_number)
  53. description: |
  54. Citra nightly releases. Please choose the correct download for your operating system from the list below.
  55. Short Commit Hash $(GITREV)
  56. auth_token:
  57. secure: "dbpsMC/MgPKWFNJCXpQl4cR8FYhepkPLjgNp/pRMktZ8oLKTqPYErfreaIxb/4P1"
  58. artifact: msvcbuild
  59. draft: false
  60. prerelease: false
  61. on:
  62. branch: master
  63. appveyor_repo_name: citra-emu/citra-nightly