appveyor.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. environment:
  7. global:
  8. APPVEYOR_CACHE_ENTRY_ZIP_ARGS: -t7z -m0=lzma -mx=9
  9. matrix:
  10. - CC_NAME: MinGW Makefiles
  11. CC_SHORTNAME: mingw
  12. GENERATOR: MinGW Makefiles
  13. # We need to redirect stderr to stdout otherwise powershell will fail if there is an output during amalgamation.
  14. # Only use one thread, otherwise appveyor runs out of memory
  15. MAKE: mingw32-make -j1 2>&1
  16. FORCE_CXX: OFF
  17. OUT_DIR_LIB: bin
  18. OUT_DIR_EXAMPLES: bin\examples
  19. - CC_NAME: Visual Studio 9 2008
  20. CC_SHORTNAME: vs2008
  21. GENERATOR: Visual Studio 9 2008
  22. MAKE: msbuild /p:ContinueOnError=false /p:StopOnFirstFailure=true open62541.sln
  23. FORCE_CXX: ON
  24. OUT_DIR_LIB: bin\Debug
  25. OUT_DIR_EXAMPLES: bin\examples\Debug
  26. - CC_NAME: Visual Studio 12 2013
  27. CC_SHORTNAME: vs2013
  28. GENERATOR: Visual Studio 12 2013
  29. MAKE: msbuild /p:ContinueOnError=false /p:StopOnFirstFailure=true open62541.sln
  30. FORCE_CXX: OFF
  31. OUT_DIR_LIB: bin\Debug
  32. OUT_DIR_EXAMPLES: bin\examples\Debug
  33. - CC_NAME: Visual Studio 14 2015
  34. CC_SHORTNAME: vs2015
  35. GENERATOR: Visual Studio 14 2015
  36. MAKE: msbuild /p:ContinueOnError=false /p:StopOnFirstFailure=true open62541.sln
  37. FORCE_CXX: OFF
  38. OUT_DIR_LIB: bin\Debug
  39. OUT_DIR_EXAMPLES: bin\examples\Debug
  40. - CC_NAME: Visual Studio 15 2017
  41. CC_SHORTNAME: vs2017
  42. APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
  43. GENERATOR: Visual Studio 15 2017
  44. MAKE: msbuild /p:ContinueOnError=false /p:StopOnFirstFailure=true open62541.sln
  45. FORCE_CXX: OFF
  46. OUT_DIR_LIB: bin\Debug
  47. OUT_DIR_EXAMPLES: bin\examples\Debug
  48. - CC_NAME: Clang
  49. CC_SHORTNAME: clang-mingw
  50. GENERATOR: MinGW Makefiles
  51. # We need to redirect stderr to stdout otherwise powershell will fail if there is an output during amalgamation.
  52. # Only use one thread, otherwise appveyor runs out of memory
  53. MAKE: mingw32-make -j1 2>&1
  54. FORCE_CXX: OFF
  55. OUT_DIR_LIB: bin
  56. OUT_DIR_EXAMPLES: bin\examples
  57. cache:
  58. - C:\ProgramData\chocolatey\bin -> tools/appveyor/install.ps1
  59. - C:\ProgramData\chocolatey\lib -> tools/appveyor/install.ps1
  60. - C:\tools\vcpkg\installed -> tools/appveyor/install.ps1
  61. #- 'c:\miktex'
  62. init:
  63. - 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
  64. install:
  65. - set PATH=C:\Users\appveyor\AppData\Roaming\Python\Scripts;%PATH%
  66. - ps: '& "./tools/appveyor/install.ps1"'
  67. before_build:
  68. # Add installed tools to PATH
  69. - set PATH=C:\msys64\mingw64\bin;%PATH%
  70. # Workaround for CMake not wanting sh.exe on PATH for MinGW (necessary for CMake 3.12.2)
  71. - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
  72. build_script:
  73. - ps: '& "./tools/appveyor/build.ps1"'
  74. after_build:
  75. - appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\open62541-%CC_SHORTNAME%-static.zip
  76. - appveyor PushArtifact %APPVEYOR_BUILD_FOLDER%\open62541-%CC_SHORTNAME%-dynamic.zip