appveyor.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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: Visual Studio 9 2008
  15. CC_SHORTNAME: vs2008
  16. GENERATOR: Visual Studio 9 2008
  17. FORCE_CXX: ON
  18. - CC_NAME: Visual Studio 12 2013
  19. CC_SHORTNAME: vs2013
  20. GENERATOR: Visual Studio 12 2013
  21. FORCE_CXX: OFF
  22. cache:
  23. - C:\ProgramData\chocolatey\bin -> tools/appveyor/install.ps1
  24. - C:\ProgramData\chocolatey\lib -> tools/appveyor/install.ps1
  25. - C:\tools\vcpkg\installed -> tools/appveyor/install.ps1
  26. #- 'c:\miktex'
  27. init:
  28. - 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
  29. install:
  30. - set PATH=C:\Users\appveyor\AppData\Roaming\Python\Scripts;%PATH%
  31. - ps: '& "./tools/appveyor/install.ps1"'
  32. build_script:
  33. - ps: '& "./tools/appveyor/build.ps1"'
  34. after_build:
  35. # Only push artifact if make install is defined
  36. - appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\open62541-%CC_SHORTNAME%-static.zip
  37. - appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\open62541-%CC_SHORTNAME%-dynamic.zip