forked from taichi-dev/taichi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
65 lines (52 loc) · 1.68 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 0.0.{build}-{branch}
# branches to build
branches:
# whitelist
only:
- master
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2015
# environment variables
environment:
TAICHI_ROOT_DIR: C:\projects\taichi\
matrix:
- PYTHON_ROOT_DIR: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "64"
# clone directory
clone_folder: $(TAICHI_ROOT_DIR)
install:
- cd %TAICHI_ROOT_DIR%
- git clone https://github.com/yuanming-hu/taichi
#---------------------------------#
# build configuration #
#---------------------------------#
platform: x64
configuration: Release
build_script:
- set PATH=%PYTHON_ROOT_DIR%;%PYTHON_ROOT_DIR%\Scripts;%PATH%
- set PYTHONPATH=%TAICHI_ROOT_DIR%/taichi/python/;%PYTHONPATH%
- python --version
- python -c "import struct; print(struct.calcsize('P') * 8)"
- python -m pip install numpy future futures watchdog Pillow pybind11
- echo %PYTHONPATH%
- cd %TAICHI_ROOT_DIR%\taichi
- md build
- cd build
- cmake -G "Visual Studio 14 Win64" ..
- msbuild /p:Configuration=Release /p:Platform=x64 /m taichi.sln
- python -c "import taichi as tc"
- 7z a %TAICHI_ROOT_DIR%\taichi\taichi_bin.zip %TAICHI_ROOT_DIR%/taichi/runtimes/*.dll %TAICHI_ROOT_DIR%/taichi/runtimes/Release/taichi_core.dll
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: taichi\taichi_bin.zip
name: 'taichi-bin-win-x86_64'