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