appveyor.yml 2.2 KB

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