appveyor.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. version: '{build}'
  2. clone_folder: c:\projects\open62541
  3. clone_depth: 20
  4. # Avoid building branch if it is part of a PR and built anyways
  5. skip_branch_with_pr: true
  6. # Fast finish (stop other builds if one fails) to speed up appveyor builds
  7. # matrix:
  8. # fast_finish: true
  9. environment:
  10. global:
  11. APPVEYOR_CACHE_ENTRY_ZIP_ARGS: -t7z -m0=lzma -mx=9
  12. matrix:
  13. - CC_NAME: MinGW Makefiles
  14. CC_SHORTNAME: mingw
  15. GENERATOR: MinGW Makefiles
  16. FORCE_CXX: OFF
  17. - CC_NAME: Visual Studio 9 2008
  18. CC_SHORTNAME: vs2008
  19. GENERATOR: Visual Studio 9 2008
  20. FORCE_CXX: ON
  21. - CC_NAME: Visual Studio 12 2013
  22. CC_SHORTNAME: vs2013
  23. GENERATOR: Visual Studio 12 2013
  24. FORCE_CXX: OFF
  25. - CC_NAME: Visual Studio 15 2017
  26. CC_SHORTNAME: vs2017
  27. APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
  28. GENERATOR: Visual Studio 15 2017
  29. FORCE_CXX: OFF
  30. - CC_NAME: Clang
  31. CC_SHORTNAME: clang-mingw
  32. GENERATOR: MinGW Makefiles
  33. FORCE_CXX: OFF
  34. cache:
  35. - C:\ProgramData\chocolatey\bin -> tools/appveyor/install.ps1
  36. - C:\ProgramData\chocolatey\lib -> tools/appveyor/install.ps1
  37. - C:\tools\vcpkg\installed -> tools/appveyor/install.ps1
  38. #- 'c:\miktex'
  39. init:
  40. - git config --global core.autocrlf input # Attempt to ensure we don't try to convert line endings to Win32 CRLF as this will cause build to fail
  41. install:
  42. - set PATH=C:\Users\appveyor\AppData\Roaming\Python\Scripts;%PATH%
  43. - ps: '& "./tools/appveyor/install.ps1"'
  44. before_build:
  45. # Add installed tools to PATH
  46. - set PATH=C:\msys64\mingw64\bin;%PATH%
  47. # Workaround for CMake not wanting sh.exe on PATH for MinGW (necessary for CMake 3.12.2)
  48. - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
  49. build_script:
  50. - ps: '& "./tools/appveyor/build.ps1"'
  51. after_build:
  52. # Only push artifact if make install is defined
  53. - appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\open62541-%CC_SHORTNAME%-static.zip
  54. - appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\open62541-%CC_SHORTNAME%-dynamic.zip