You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
1.8 KiB

  1. #os: Visual Studio 2015
  2. clone_depth: 5
  3. cache:
  4. - C:\ProgramData\chocolatey\bin -> appveyor.yml
  5. - C:\ProgramData\chocolatey\lib -> appveyor.yml
  6. init:
  7. - cmake -E remove c:\programdata\chocolatey\bin\cpack.exe
  8. - set PATH=%PATH:C:\Program Files (x86)\Git\usr\bin;=%
  9. - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
  10. - if [%BITS%]==[32] set MINGW=C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1\mingw32
  11. - if [%BITS%]==[64] set MINGW=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64
  12. - if [%COMPILER%]==[mingw] set PATH=%MINGW%\bin;%PATH%
  13. - set RAYLIB_PACKAGE_SUFFIX=-Win%BITS%-%COMPILER%
  14. - set VERBOSE=1
  15. environment:
  16. matrix:
  17. - compiler: mingw
  18. bits: 32
  19. examples: ON
  20. - compiler: mingw
  21. bits: 64
  22. examples: ON
  23. - compiler: msvc15
  24. bits: 32
  25. examples: OFF
  26. - compiler: msvc15
  27. bits: 64
  28. examples: OFF
  29. before_build:
  30. - if [%compiler%]==[mingw] set CFLAGS=-m%BITS% & set LDFLAGS=-m%BITS% & set GENERATOR="MinGW Makefiles"
  31. - if [%COMPILER%]==[msvc15] if [%BITS%]==[32] set GENERATOR="Visual Studio 14 2015"
  32. - if [%COMPILER%]==[msvc15] if [%BITS%]==[64] set GENERATOR="Visual Studio 14 2015 Win64"
  33. - mkdir build
  34. - cd build
  35. build_script:
  36. - cmake -G %GENERATOR% -DSTATIC=ON -DSHARED=ON -DBUILD_EXAMPLES=%examples% -DBUILD_GAMES=%examples% -DINCLUDE_EVERYTHING=ON ..
  37. - cmake --build . --target install
  38. after_build:
  39. - cmake --build . --target package
  40. before_test:
  41. test_script:
  42. artifacts:
  43. - path: 'build\*.zip'
  44. deploy:
  45. - provider: GitHub
  46. auth_token:
  47. secure: OxKnnT3tlkPl9365cOO84rDWU4UkHIYJc0D3r3Tv7rB3HaR2BBhlhCnl7g3nuOJy
  48. artifact: /.*\.zip/
  49. draft: false
  50. prerelease: false
  51. force_update: true
  52. on:
  53. branch: master
  54. appveyor_repo_tag: true # deploy on tag push only