appveyor.yml 3.1 KB

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