.travis.yml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. git:
  2. depth: 3
  3. quiet: true
  4. matrix:
  5. include:
  6. - os: osx
  7. language: cpp
  8. osx_image: xcode11.2
  9. compiler: clang
  10. script:
  11. - ./ciscripts/macOS/CPU_Metal.sh
  12. name: "macOS11.2 | CPU_Metal"
  13. env:
  14. - MNNCITARGET=MACOSCPUMETAL
  15. - os: osx
  16. language: cpp
  17. osx_image: xcode11.2
  18. compiler: clang
  19. script:
  20. - ./ciscripts/macOS/CPU.sh
  21. name: "macOS11.2 | CPU"
  22. env:
  23. - MNNCITARGET=MACOSCPU
  24. - os: osx
  25. language: cpp
  26. osx_image: xcode11.2
  27. compiler: clang
  28. script:
  29. - ./ciscripts/iOS/Xcode.sh
  30. name: "iOS | CPU_Metal | Xcode"
  31. env:
  32. - MNNCITARGET=IOSCPUMETALXCODE
  33. - os: osx
  34. language: cpp
  35. osx_image: xcode11.2
  36. compiler: clang
  37. script:
  38. - ./ciscripts/iOS/CMake.sh
  39. name: "iOS | CPU_Metal | CMake"
  40. env:
  41. - MNNCITARGET=IOSCPUMETALCMAKE
  42. - os: linux
  43. sudo: required
  44. dist: bionic
  45. language: cpp
  46. install:
  47. - sudo apt-get install ant libprotobuf-dev libvulkan-dev libglew-dev freeglut3-dev protobuf-compiler ocl-icd-opencl-dev libglfw3-dev
  48. compiler: gcc
  49. script:
  50. - ./ciscripts/Linux/CL_ThreadPool_Vulkan.sh
  51. name: "Linux | CPU_CL_ThreadPool_Vulkan"
  52. env:
  53. - MNNCITARGET=LINUXCLTHREADPOOLVULKAN
  54. - os: linux
  55. sudo: required
  56. dist: bionic
  57. language: cpp
  58. install:
  59. - sudo apt-get install ant libprotobuf-dev libvulkan-dev libglew-dev freeglut3-dev protobuf-compiler ocl-icd-opencl-dev libglfw3-dev
  60. compiler: gcc
  61. script:
  62. - ./ciscripts/Linux/CL_OMP_Vulkan.sh
  63. name: "Linux | CPU_CL_OMP_Vulkan"
  64. env:
  65. - MNNCITARGET=LINUXCLOMPVULKAN
  66. - os: linux
  67. sudo: required
  68. dist: trusty
  69. language: android
  70. compiler: clang
  71. android:
  72. components:
  73. - tools
  74. - build-tools
  75. - platform-tools
  76. - android-21
  77. licenses:
  78. - 'android-sdk-preview-license-.+'
  79. - 'android-sdk-license-.+'
  80. - 'google-gdk-license-.+'
  81. before_script:
  82. - sudo apt-get install ant libprotobuf-dev protobuf-compiler
  83. - sudo apt-get remove cmake
  84. - echo yes | sdkmanager "ndk-bundle"
  85. - echo yes | sdkmanager "cmake;3.10.2.4988404"
  86. - export ANDROID_NDK=$ANDROID_HOME/ndk-bundle
  87. - export PATH=/usr/local/android-sdk/cmake/3.10.2.4988404/bin/:$PATH
  88. script:
  89. - ./ciscripts/Android/32.sh
  90. name: "Android | AArch32_ThreadPool_Vulkan"
  91. env:
  92. - MNNCITARGET=ARM32THREADPOOLVULKAN
  93. - os: linux
  94. sudo: required
  95. dist: trusty
  96. language: android
  97. compiler: clang
  98. android:
  99. components:
  100. - tools
  101. - build-tools
  102. - platform-tools
  103. - android-21
  104. licenses:
  105. - 'android-sdk-preview-license-.+'
  106. - 'android-sdk-license-.+'
  107. - 'google-gdk-license-.+'
  108. before_script:
  109. - sudo apt-get install ant libprotobuf-dev protobuf-compiler
  110. - echo yes | sdkmanager "ndk-bundle"
  111. - echo yes | sdkmanager "cmake;3.10.2.4988404"
  112. - export ANDROID_NDK=$ANDROID_HOME/ndk-bundle
  113. - export PATH=/usr/local/android-sdk/cmake/3.10.2.4988404/bin/:$PATH
  114. script:
  115. - ./ciscripts/Android/32OMP.sh
  116. name: "Android | AArch32_OMP_Vulkan"
  117. env:
  118. - MNNCITARGET=ARM32OMPVULKAN
  119. - os: linux
  120. sudo: required
  121. dist: trusty
  122. language: android
  123. compiler: clang
  124. android:
  125. components:
  126. - tools
  127. - build-tools
  128. - platform-tools
  129. - android-21
  130. licenses:
  131. - 'android-sdk-preview-license-.+'
  132. - 'android-sdk-license-.+'
  133. - 'google-gdk-license-.+'
  134. before_script:
  135. - sudo apt-get install ant libprotobuf-dev protobuf-compiler
  136. - echo yes | sdkmanager "ndk-bundle"
  137. - echo yes | sdkmanager "cmake;3.10.2.4988404"
  138. - export ANDROID_NDK=$ANDROID_HOME/ndk-bundle
  139. - export PATH=/usr/local/android-sdk/cmake/3.10.2.4988404/bin/:$PATH
  140. script:
  141. - ./ciscripts/Android/64.sh
  142. name: "Android | AArch64_ThreadPool_Vulkan"
  143. env:
  144. - MNNCITARGET=ARM64THREADPOOLVULKAN
  145. - os: linux
  146. sudo: required
  147. dist: trusty
  148. language: android
  149. compiler: clang
  150. android:
  151. components:
  152. - tools
  153. - build-tools
  154. - platform-tools
  155. - android-21
  156. licenses:
  157. - 'android-sdk-preview-license-.+'
  158. - 'android-sdk-license-.+'
  159. - 'google-gdk-license-.+'
  160. before_script:
  161. - sudo apt-get install ant libprotobuf-dev protobuf-compiler
  162. - echo yes | sdkmanager "ndk-bundle"
  163. - echo yes | sdkmanager "cmake;3.10.2.4988404"
  164. - export ANDROID_NDK=$ANDROID_HOME/ndk-bundle
  165. - export PATH=/usr/local/android-sdk/cmake/3.10.2.4988404/bin/:$PATH
  166. script:
  167. - ./ciscripts/Android/64OMP.sh
  168. name: "Android | AArch64_OMP_Vulkan"
  169. env:
  170. - MNNCITARGET=ARM64OMPVULKAN
  171. - os: windows
  172. language: cpp
  173. install:
  174. - PowerShell -Command 'Set-ExecutionPolicy -ExecutionPolicy RemoteSigned'
  175. - choco install ninja
  176. script:
  177. - ciscripts/Windows/X64.bat
  178. name: "Windows | x64 CPU"
  179. env:
  180. - MNNCITARGET=WINX64
  181. - CXX=cl.exe
  182. - CXX_FOR_BUILD=cl.exe
  183. - CC=cl.exe
  184. - CC_FOR_BUILD=cl.exe
  185. - os: windows
  186. language: cpp
  187. install:
  188. - PowerShell -Command 'Set-ExecutionPolicy -ExecutionPolicy RemoteSigned'
  189. - choco install ninja
  190. script:
  191. - ciscripts/Windows/X86.bat
  192. name: "Windows | x86 CPU"
  193. env:
  194. - MNNCITARGET=WINX86
  195. - CXX=cl.exe
  196. - CXX_FOR_BUILD=cl.exe
  197. - CC=cl.exe
  198. - CC_FOR_BUILD=cl.exe