forked from Unity-Technologies/usd-unity-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_usd.yml
100 lines (96 loc) · 3.91 KB
/
build_usd.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
usd_versions:
- version: v20.08
dir_name: USD-20.08
- version: v21.02
dir_name: USD-21.02
build_platforms:
- name: win
type: Unity::VM
image: filmtv/usd_build_win10_image:latest
flavor: b1.xlarge
setenv_cmd: call "C:\\Program Files (x86)\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat"
stevedore_url: "%STEVEDORE_UPLOAD_TOOL_URL%"
stevedore_exe: "StevedoreUpload.exe"
install_path: package/com.unity.formats.usd/Runtime/Plugins/x86_64/Windows/**
- name: mac
type: Unity::VM::osx
image: filmtv/usd_build_macos_image:latest
flavor: m1.mac
setenv_cmd: echo "Environment set"
stevedore_url: "$STEVEDORE_UPLOAD_TOOL_URL"
stevedore_exe: "mono StevedoreUpload.exe"
install_path: package/com.unity.formats.usd/Runtime/Plugins/x86_64/MacOS/**
- name: linux
type: Unity::VM
image: filmtv/usd_build_linux_image:latest
flavor: b1.large
setenv_cmd: export PATH=/opt/rh/devtoolset-7/root/usr/bin:/home/bokken/cmake-3.19.2-Linux-x86_64/bin:$PATH
stevedore_url: "$STEVEDORE_UPLOAD_TOOL_URL"
stevedore_exe: "mono StevedoreUpload.exe"
install_path: package/com.unity.formats.usd/Runtime/Plugins/x86_64/Linux/**
---
{% for platform in build_platforms %}
{% for usd_version in usd_versions %}
{{usd_version.version}}_{{platform.name}}:
name: {{usd_version.version}} - {{platform.name}} - Build USD library
skip_checkout: true
agent:
type: {{platform.type}}
image: {{platform.image}}
flavor: {{platform.flavor}}
commands:
- |
{{platform.setenv_cmd}}
wget https://github.com/PixarAnimationStudios/USD/archive/{{usd_version.version}}.zip
unzip {{usd_version.version}}.zip
cd {{usd_version.dir_name}}
python3 build_scripts/build_usd.py --build-monolithic --alembic --no-imaging --no-examples --no-tutorials ../artifacts/usd-{{usd_version.version}}
rm -rf ../artifacts/usd-{{usd_version.version}}/build
rm -rf ../artifacts/usd-{{usd_version.version}}/src
python3 build_scripts/build_usd.py --build-monolithic --alembic --no-python --no-imaging --no-examples --no-tutorials ../artifacts/usd-{{usd_version.version}}_no_python
rm -rf ../artifacts/usd-{{usd_version.version}}_no_python/build
rm -rf ../artifacts/usd-{{usd_version.version}}_no_python/src
cd ../artifacts
zip -r usd-{{platform.name}}-python36-x86_64.zip usd-{{usd_version.version}}/* usd-{{usd_version.version}}_no_python/*
curl -sSo StevedoreUpload.exe {{platform.stevedore_url}}
{{platform.stevedore_exe}} --repo=testing --version="{{usd_version.version}}" usd-{{platform.name}}-python36-x86_64.zip
artifacts:
{{platform.name}}_usd_{{usd_version.version}}:
paths:
- "artifacts/usd-{{usd_version.version}}*"
{% endfor %}
{% endfor %}
{% for platform in build_platforms %}
{% for usd_version in usd_versions %}
{{platform.name}}_usd_{{usd_version.version}}_bindings:
name: {{usd_version.version}} - {{platform.name}} - Build C# bindings
agent:
type: {{platform.type}}
image: {{platform.image}}
flavor: {{platform.flavor}}
commands:
- |
{{platform.setenv_cmd}}
python3 bin/build.py --usd_version "{{usd_version.version}}" --download --component usdcs
artifacts:
{{platform.name}}_usdCs_v{{usd_version.version}}:
paths:
- "{{platform.install_path}}"
{% endfor %}
{% endfor %}
#{% for usd_version in usd_versions %}
#{{usd_version.version}}_publish_bindings:
# name: {{usd_version.version}} - Publish C# bindings
# skip_checkout: true
# agent:
# name: linux
# type: Unity::VM
# image: filmtv/usd_build_linux_image:latest
# flavor: b1.small
# dependencies:
# - .yamato/build_usd.yml#win_usd_v{{usd_version.version}}_bindings
# - .yamato/build_usd.yml#mac_usd_v{{usd_version.version}}_bindings
# - .yamato/build_usd.yml#linux_usd_v{{usd_version.version}}_bindings
# commands:
# - bin/commit_bindings.sh
#{% endfor %}