Skip to content

Commit d4eccb0

Browse files
authored
Add a build for graphviz (#362)
Add a pipeline to build graphviz. This is intended to be used for swift-doc.
1 parent 29b946c commit d4eccb0

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.ci/graphviz.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
2+
trigger:
3+
branches:
4+
include:
5+
- master
6+
paths:
7+
include:
8+
- .ci/graphviz.yml
9+
- .ci/templates/graphviz.yml
10+
11+
pool:
12+
vmImage: windows-latest
13+
14+
variables:
15+
install.directory: $(Build.StagingDirectory)/graphviz-windows-x64/Library/graphviz-development
16+
17+
steps:
18+
- checkout: self
19+
- script: |
20+
git clone --no-tags --depth=1 https://gitlab.com/graphviz/graphviz.git
21+
git -C graphviz submodule update --init
22+
- task: BatchScript@1
23+
inputs:
24+
filename: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/Common7/Tools/VsDevCmd.bat
25+
arguments: -no_logo -arch=x64 -host_arch=x64
26+
modifyEnvironment: true
27+
displayName: 'VsDevCmd'
28+
- task: UsePythonVersion@0
29+
inputs:
30+
versionSpec: 3.x
31+
name: python
32+
- task: CMake@1
33+
inputs:
34+
cmakeArgs:
35+
-B $(Build.BinariesDirectory)/graphviz
36+
-D BISON_EXECUTABLE=$(Build.SourcesDirectory)/graphviz/windows/dependencies/graphviz-build-utilities/winflexbison/win_bison.exe
37+
-D FLEX_EXECUTABLE=$(Build.SourcesDirectory)/graphviz/windows/dependencies/graphviz-build-utilities/winflexbison/win_flex.exe
38+
-D CMAKE_BUILD_TYPE=MinSizeRel
39+
-D CMAKE_INSTALL_PREFIX=$(install.directory)/usr
40+
-S $(Build.SourcesDirectory)/graphviz
41+
- task: CMake@1
42+
inputs:
43+
cmakeArgs: --build $(Build.BinariesDirectory)/graphviz --target install
44+
- publish: $(Build.StagingDirectory)/graphviz-windows-x64
45+
artifact: graphviz-windows-x64

0 commit comments

Comments
 (0)