appveyor.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 2017
  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 15 2017 Win64" -DCITRA_USE_BUNDLED_QT=1 -DCITRA_USE_BUNDLED_SDL2=1 -DCMAKE_USE_OPENSSL=0 ..
  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. $MSVC_SEVENZIP = "citra-windows-msvc-$GITDATE-$GITREV.7z" -replace " ", ""
  32. $BINTRAY_VERSION = "nightly-$GIT_LONG_HASH" -replace " ", ""
  33. # set the build names as env vars so the artifacts can upload them
  34. $env:MSVC_BUILD_NAME = $MSVC_BUILD_NAME
  35. $env:MSVC_BUILD_PDB = $MSVC_BUILD_PDB
  36. $env:MSVC_SEVENZIP = $MSVC_SEVENZIP
  37. $env:GITREV = $GITREV
  38. 7z a -tzip $MSVC_BUILD_PDB .\build\bin\release\*.pdb
  39. rm .\build\bin\release\*.pdb
  40. mkdir nightly
  41. Copy-Item .\build\bin\release\* -Destination nightly -Recurse
  42. Copy-Item .\license.txt -Destination nightly
  43. Copy-Item .\README.md -Destination nightly
  44. 7z a -tzip $MSVC_BUILD_NAME nightly\*
  45. 7z a $MSVC_SEVENZIP nightly
  46. test_script:
  47. - cd build && ctest -VV -C Release && cd ..
  48. artifacts:
  49. - path: $(MSVC_BUILD_NAME)
  50. name: msvcbuild
  51. type: zip
  52. - path: $(MSVC_BUILD_PDB)
  53. name: msvcdebug
  54. type: zip
  55. - path: $(MSVC_SEVENZIP)
  56. name: msvcupdate
  57. deploy:
  58. provider: GitHub
  59. release: nightly-$(appveyor_build_number)
  60. description: |
  61. Citra nightly releases. Please choose the correct download for your operating system from the list below.
  62. Short Commit Hash $(GITREV)
  63. auth_token:
  64. secure: "dbpsMC/MgPKWFNJCXpQl4cR8FYhepkPLjgNp/pRMktZ8oLKTqPYErfreaIxb/4P1"
  65. artifact: msvcupdate,msvcbuild
  66. draft: false
  67. prerelease: false
  68. on:
  69. branch: master
  70. appveyor_repo_name: citra-emu/citra-nightly