.appveyor.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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. - cd C:\Tools\vcpkg
  12. - git pull --quiet
  13. - .\bootstrap-vcpkg.bat
  14. - cd %APPVEYOR_BUILD_FOLDER%
  15. - vcpkg install --triplet %PLATFORM%-windows --recurse fftw3 libsamplerate libsndfile lilv lv2 sdl2
  16. - nuget install clcache -Version 4.1.0
  17. build_script:
  18. - cd %APPVEYOR_BUILD_FOLDER%
  19. - mkdir build
  20. - cd build
  21. - ps: $env:CMAKE_PLATFORM="$(if ($env:PLATFORM -eq 'x64') { 'x64' } else { '' })"
  22. - ps: $env:QT_SUFFIX="$(if ($env:PLATFORM -eq 'x64') { '_64' } else { '' })"
  23. - 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% -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_GENERATOR_PLATFORM="%CMAKE_PLATFORM%" ..
  24. - cmake --build . -- /maxcpucount:4
  25. - cmake --build . --target tests
  26. - cmake --build . --target package
  27. artifacts:
  28. - path: 'build\lmms-*.exe'
  29. name: Installer
  30. cache:
  31. - c:/tools/vcpkg/installed