.appveyor.yml 1004 B

12345678910111213141516171819202122232425262728
  1. clone_depth: 1
  2. version: "{build}"
  3. image: Visual Studio 2017
  4. platform:
  5. - x86
  6. - x64
  7. environment:
  8. matrix:
  9. - compiler: msvc
  10. install:
  11. - vcpkg install --triplet %PLATFORM%-windows --recurse fftw3 libsamplerate libsndfile sdl2
  12. - nuget install clcache -Version 4.1.0
  13. build_script:
  14. - cd %APPVEYOR_BUILD_FOLDER%
  15. - mkdir build
  16. - cd build
  17. - ps: $env:CMAKE_PLATFORM="$(if ($env:PLATFORM -eq 'x64') { 'x64' } else { '' })"
  18. - ps: $env:QT_SUFFIX="$(if ($env:PLATFORM -eq 'x64') { '_64' } else { '' })"
  19. - cmake -DUSE_COMPILE_CACHE=ON -DCACHE_TOOL=%APPVEYOR_BUILD_FOLDER%/clcache.4.1.0/clcache-4.1.0/clcache.exe -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_PREFIX_PATH=c:/Qt/5.12/msvc2017%QT_SUFFIX%;c:/tools/vcpkg/installed/%PLATFORM%-windows -DCMAKE_GENERATOR_PLATFORM="%CMAKE_PLATFORM%" ..
  20. - cmake --build . -- /maxcpucount:4
  21. - cmake --build . --target tests
  22. - cmake --build . --target package
  23. artifacts:
  24. - path: 'build\lmms-*.exe'
  25. name: Installer
  26. cache:
  27. - c:/tools/vcpkg/installed