appveyor.yml 1.3 KB

12345678910111213141516171819202122232425262728
  1. version: 7.4.2.{build}
  2. environment:
  3. matrix:
  4. - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
  5. CMAKE_GENERATOR: Visual Studio 17 2022
  6. - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
  7. CMAKE_GENERATOR: Visual Studio 16 2019
  8. - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
  9. CMAKE_GENERATOR: Visual Studio 15 2017
  10. - CMAKE_GENERATOR: Ninja
  11. MINGW32: i686-6.3.0-posix-dwarf-rt_v5-rev1 # MinGW-w64 6.3.0 i686
  12. - CMAKE_GENERATOR: Ninja
  13. MINGW64: x86_64-6.3.0-posix-seh-rt_v5-rev1 # MinGW-w64 6.3.0 x86_64
  14. - CMAKE_GENERATOR: Ninja
  15. MINGW64: x86_64-7.3.0-posix-seh-rt_v5-rev0 # MinGW-w64 7.3.0 x86_64
  16. - CMAKE_GENERATOR: Ninja
  17. MINGW64: x86_64-8.1.0-posix-seh-rt_v6-rev0 # MinGW-w64 8.1.0 x86_64
  18. configuration: Debug
  19. before_build:
  20. - set PATH=%PATH:C:\Program Files\Git\usr\bin;=% # Workaround for CMake not wanting sh.exe on PATH for MinGW
  21. - if defined MINGW set PATH=C:\%MINGW%\bin;%PATH%
  22. - if defined MINGW32 set PATH=C:\mingw-w64\%MINGW32%\mingw32\bin;%PATH%
  23. - if defined MINGW64 set PATH=C:\mingw-w64\%MINGW64%\mingw64\bin;%PATH%
  24. - cmake -DCMAKE_BUILD_TYPE=%CONFIGURATION% -G "%CMAKE_GENERATOR%" .
  25. build_script:
  26. - cmake --build . --config %CONFIGURATION%
  27. test_script:
  28. - ctest -C %CONFIGURATION% --output-on-failure .