appveyor.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. - mkdir build
  17. - cd build
  18. - cmake -G "Visual Studio 14 2015 Win64" -DCITRA_USE_BUNDLED_QT=1 -DCITRA_USE_BUNDLED_SDL2=1 ..
  19. - cd ..
  20. build:
  21. project: build/citra.sln
  22. parallel: true
  23. after_build:
  24. - ps: |
  25. $GITDATE = $(git show -s --date=short --format='%ad') -replace "-",""
  26. $GITREV = $(git show -s --format='%h')
  27. $GIT_LONG_HASH = $(git rev-parse HEAD)
  28. # Where are these spaces coming from? Regardless, let's remove them
  29. $MSVC_BUILD_NAME = "citra-windows-msvc-$GITDATE-$GITREV.zip" -replace " ", ""
  30. $MSVC_BUILD_PDB = "citra-windows-msvc-$GITDATE-$GITREV-debugsymbols.zip" -replace " ", ""
  31. $BINTRAY_VERSION = "nightly-$GIT_LONG_HASH" -replace " ", ""
  32. # set the build names as env vars so the artifacts can upload them
  33. $env:MSVC_BUILD_NAME = $MSVC_BUILD_NAME
  34. $env:MSVC_BUILD_PDB = $MSVC_BUILD_PDB
  35. $env:GITREV = $GITREV
  36. 7z a -tzip $MSVC_BUILD_PDB .\build\bin\release\*.pdb
  37. rm .\build\bin\release\*.pdb
  38. 7z a -tzip $MSVC_BUILD_NAME .\build\bin\release\* .\license.txt .\README.md
  39. test_script:
  40. - cd build && ctest -VV -C Release && cd ..
  41. artifacts:
  42. - path: $(MSVC_BUILD_NAME)
  43. name: msvcbuild
  44. type: zip
  45. - path: $(MSVC_BUILD_PDB)
  46. name: msvcdebug
  47. type: zip
  48. deploy:
  49. provider: GitHub
  50. release: nightly-$(appveyor_build_number)
  51. description: |
  52. Citra nightly releases. Please choose the correct download for your operating system from the list below.
  53. Short Commit Hash $(GITREV)
  54. auth_token:
  55. secure: "dbpsMC/MgPKWFNJCXpQl4cR8FYhepkPLjgNp/pRMktZ8oLKTqPYErfreaIxb/4P1"
  56. artifact: msvcbuild
  57. draft: false
  58. prerelease: false
  59. on:
  60. branch: master
  61. appveyor_repo_name: citra-emu/citra-nightly