forked from LuxCoreRender/LuxCore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release-pipeline.yml
119 lines (108 loc) · 4.24 KB
/
release-pipeline.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
# Azure build pipeline script
# Add steps that build, run tests, deploy, and more: https://aka.ms/yaml
resources:
containers:
- container: LinuxContainer
image: ubuntu:14.04
trigger:
tags:
include:
- luxcorerender_v*
variables:
release_build: 'TRUE'
jobs:
# - job: LuxCoreRenderLinux
# timeoutInMinutes: 0
# pool:
# vmImage: 'ubuntu-16.04'
# container: LinuxContainer
# steps:
# - script: ./scripts/azurepipeline/linux/build.sh
# displayName: Building LuxCore
# # - script: ./scripts/azurepipeline/linux/test.sh
# # displayName: Testing LuxCore
# - task: PublishBuildArtifacts@1
# inputs:
# pathtoPublish: '$(System.DefaultWorkingDirectory)/LinuxCompile/target-64-sse2/luxcorerender-latest-linux64.tar.bz2'
# artifactName: LuxCore
# displayName: 'Upload luxcorerender-latest-linux64.tar.bz2'
# condition: eq(variables['System.PullRequest.IsFork'], 'False')
# - task: PublishBuildArtifacts@1
# inputs:
# pathtoPublish: '$(System.DefaultWorkingDirectory)/LinuxCompile/target-64-sse2/luxcorerender-latest-linux64-opencl.tar.bz2'
# artifactName: LuxCore
# displayName: 'Upload luxcorerender-latest-linux64-opencl.tar.bz2'
# condition: eq(variables['System.PullRequest.IsFork'], 'False')
- job: LuxCoreRenderWindows
timeoutInMinutes: 0
pool:
vmImage: 'vs2017-win2016'
# container: WindowsContainer
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.5'
addToPath: true
architecture: 'x64'
- script: './scripts/azurepipeline/windows/deps-setup.cmd'
displayName: Getting required deps
- script: './scripts/azurepipeline/windows/build.cmd /cmake-only /no-ocl'
displayName: Generating build files with CMake - OpenCL disabled
# - task: MSBuild@1
# inputs:
# solution: '..\WindowsCompile\Build_CMake\LuxCore\LuxRays.sln'
# msbuildVersion: '15.0'
# msbuildArchitecture: 'x64'
# platform: 'x64'
# configuration: 'Release'
# msbuildArguments: '/nologo /verbosity:normal /p:WarningLevel=0'
# # maximumCpuCount --> false to build solution 1 project at a time
# # Avoids "Error C1002: compiler out of heap space in pass 2"
# maximumCpuCount: false
# createLogFile: true
# displayName: Building LuxCore - OpenCL disabled
- script: './scripts/azurepipeline/windows/post-build.cmd /no-ocl'
displayName: Gathering and packing binaries - OpenCL disabled
# - script: './scripts/azurepipeline/windows/build.cmd /cmake-only'
# displayName: Generating build files with CMake - OpenCL enabled
# - task: MSBuild@1
# inputs:
# solution: '..\WindowsCompile\Build_CMake\LuxCore\LuxRays.sln'
# msbuildVersion: '15.0'
# msbuildArchitecture: 'x64'
# platform: 'x64'
# configuration: 'Release'
# msbuildArguments: '/nologo /verbosity:normal /p:WarningLevel=0'
# # maximumCpuCount --> false to build solution 1 project at a time
# # Avoids "Error C1002: compiler out of heap space in pass 2"
# maximumCpuCount: false
# createLogFile: true
# displayName: Building LuxCore - OpenCL enabled
# - script: './scripts/azurepipeline/windows/post-build.cmd'
# displayName: Gathering and packing binaries - OpenCL enabled
# - script: './scripts/azurepipeline/windows/test.cmd'
# displayName: Testing LuxCore
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: LuxCore
displayName: 'Upload luxcorerender-<version>-win64.zip'
condition: eq(variables['System.PullRequest.IsFork'], 'False')
# - task: PublishBuildArtifacts@1
# inputs:
# pathtoPublish: '$(System.DefaultWorkingDirectory)\..\WindowsCompile\luxcorerender-latest-win64-opencl.zip'
# artifactName: LuxCore
# displayName: 'Upload luxcorerender-latest-win64-opencl.zip'
# condition: eq(variables['System.PullRequest.IsFork'], 'False')
#- job: LuxCoreRenderMacOS
# timeoutInMinutes: 0
# pool:
# vmImage: 'macOS-10.13'
#
# steps:
# - script: ./scripts/azurepipeline/macos/install.sh
# displayName: Install Build Tools
# - script: ./scripts/azurepipeline/macos/build.sh
# displayName: Building LuxCore
# - script: ./scripts/azurepipeline/macos/test.sh
# displayName: Testing LuxCore