forked from taichi-dev/taichi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
48 lines (41 loc) · 1.53 KB
/
appveyor.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
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 0.0.{build}-{branch}
#---------------------------------#
# environment configuration #
#---------------------------------#
image: Visual Studio 2017
clone_folder: C:\taichi
#---------------------------------#
# build configuration #
#---------------------------------#
platform: x64
configuration: Release
environment:
matrix:
- PYTHON: C:\Python36-x64\python.exe
- PYTHON: C:\Python37-x64\python.exe
build_script:
- cd C:\
- curl --retry 10 --retry-delay 5 https://github.com/yuanming-hu/taichi_assets/releases/download/llvm8/taichi-llvm-8.0.1-msvc2017.zip -LO
- 7z x taichi-llvm-8.0.1-msvc2017.zip -otaichi_llvm
- curl --retry 10 --retry-delay 5 https://github.com/yuanming-hu/taichi_assets/releases/download/llvm8/clang-7.0.1-win.zip -LO
- 7z x clang-7.0.1-win.zip -otaichi_clang
- set PATH=C:\taichi_llvm\bin;%PATH%;
- set PATH=C:\taichi_clang\bin;%PATH%
- set TAICHI_REPO_DIR=C:\taichi
- set PYTHONPATH=%TAICHI_REPO_DIR%/python
- clang --version
- cd C:\taichi
- "%PYTHON% dev_setup.py ci"
- mkdir build
- cd build
- cmake .. -G"Visual Studio 15 2017 Win64" -DPYTHON_EXECUTABLE="%PYTHON%" -DLLVM_DIR="C:\taichi_llvm\lib\cmake\llvm"
- msbuild /p:Configuration=RelWithDebInfo /p:Platform=x64 /m taichi.sln
- cd ..
- '%PYTHON% -c "import taichi"'
- "%PYTHON% examples/laplace.py"
- "%PYTHON% -m taichi test"
- "cd python && %PYTHON% build.py upload"