appveyor.yml 3.0 KB

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