forked from VictorYudin/saturn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
80 lines (61 loc) · 2.99 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
image: Visual Studio 2017
platform: x64
configuration: Release
# clone directory
clone_folder: c:\projects\saturn
install:
- cmd: set PATH=C:\Program Files\Git\cmd;C:\cygwin64\bin;C:\Program Files (x86)\CMake\bin;C:\Windows\System32;C:\Windows\System32\wbem
# Python
- cmd: curl https://www.python.org/ftp/python/2.7.13/python-2.7.13.amd64.msi -o python.msi
- cmd: msiexec /a python.msi /qb TARGETDIR=C:\projects\saturn\python
- cmd: curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
- cmd: python\python.exe get-pip.py
- cmd: python\python.exe -m pip install PySide PyOpenGL Jinja2
# GNU ed
- cmd: curl ftp://cygwin.osuosl.org/pub/cygwin/x86_64/release/ed/ed-1.14.1-1.tar.xz -o ed.tar.xz
- cmd: tar -xf ed.tar.xz
# unzip
- cmd: curl ftp://cygwin.osuosl.org/pub/cygwin/x86_64/release/unzip/unzip-6.0-17.tar.xz -o unzip.tar.xz
- cmd: tar -xf unzip.tar.xz
# flex
- cmd: curl ftp://cygwin.osuosl.org/pub/cygwin/x86_64/release/flex/flex-2.6.4-2.tar.xz -o flex.tar.xz
- cmd: tar -xf flex.tar.xz
- cmd: usr\bin\flex.exe --version
# bison
- cmd: curl ftp://cygwin.osuosl.org/pub/cygwin/x86_64/release/bison/bison-3.0.4-1.tar.xz -o bison.tar.xz
- cmd: tar -xf bison.tar.xz
- cmd: usr\bin\bison.exe --version
# nasm
- cmd: curl https://www.nasm.us/pub/nasm/releasebuilds/2.14.01/win64/nasm-2.14.01-win64.zip -o nasm.zip
- cmd: usr\bin\unzip -q nasm.zip
- cmd: chmod -R u+x nasm-2.14.01/nasm.exe
- cmd: nasm-2.14.01\nasm.exe --version
# jom
- cmd: curl --tlsv1.2 -o jom.tar.xz -L https://github.com/VictorYudin/saturn-jom/releases/download/1.0.5/jom-v1.1.2.tar.xz
- cmd: tar -xf jom.tar.xz
# boost
- cmd: curl --tlsv1.2 -o boost.tar.xz -L https://github.com/VictorYudin/saturn-boost/releases/download/1.0.5/boost-1_61_0.tar.xz
- cmd: tar -xf boost.tar.xz
# llvm
- cmd: curl --tlsv1.2 -o llvm.tar.xz -L https://github.com/VictorYudin/saturn-llvm/releases/download/9.0.0/llvm-9.0.0.tar.xz
- cmd: tar -xf llvm.tar.xz
# Put them to PATH
- cmd: set PATH=%PATH%;C:\projects\saturn\usr\bin;C:\projects\saturn\nasm-2.14.01;C:\projects\saturn\jom\bin;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0
# MSVC environment
- cmd: '"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"'
# Maya 2018 devkit
- cmd: curl --tlsv1.2 -o mayaDevkit.zip -L https://github.com/VictorYudin/saturn/releases/download/Maya2018Devkit/Maya2018-DEVKIT_Windows.zip
- cmd: usr\bin\unzip -q mayaDevkit.zip
- cmd: rm -rf devkitBase/include/tbb
- cmd: rm -rf devkitBase/include/python2.7
build_script:
- cmd: make BOOST_LINK=shared MAYA_ROOT=C:/projects/saturn/devkitBase PYTHON_BIN=C:/projects/saturn/python/python.exe boost_EXTERNAL=C:/projects/saturn/boost llvm_EXTERNAL=C:/projects/saturn/llvm -j4
artifacts:
- path: usd*.tar.xz
name: Package
deploy:
- provider: Environment
name: GitHub Release
test: off
only_commits:
message: /build/