-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
122 lines (102 loc) · 3.53 KB
/
azure-pipelines.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
119
120
121
trigger: none
jobs:
- job: CreateMacPangoLibsViaVcpkg
#condition: eq(true, false) # disable job for now
pool:
vmImage: 'macOS-12'
steps:
- bash: |
git clone https://github.com/TechSmith/vcpkg # clone the TSC fork because we have some customizations
cd vcpkg
./bootstrap-vcpkg.sh
displayName: Setup vcpkg
- bash: |
./vcpkg install pango:x64-osx-dynamic-release
workingDirectory: vcpkg
displayName: Run vcpkg install (x64-osx-dynamic-release)
- bash: |
./vcpkg install pango:arm64-osx-dynamic-release
workingDirectory: vcpkg
displayName: Run vcpkg install (arm64-osx-dynamic-release)
- bash: |
./vcpkg list > ../versions.txt
./vcpkg list --x-json > ../versions.json
workingDirectory: vcpkg
displayName: Save library versions to a text and json file
- bash: |
ls -l vcpkg/installed/x64-osx-dynamic-release/lib
ls -l vcpkg/installed/arm64-osx-dynamic-release/lib
displayName: DEBUGGING
- task: Bash@3
inputs:
filePath: makeUniversalBinary.sh
displayName: Make Universal Binaries
- bash: |
cp versions.txt universal
cp versions.json universal
cp codeSignLibs.sh universal
displayName: Copy other packaging files into universal
- bash: |
ls -l universal
ls -l universal/include
ls -l universal/lib
displayName: DEBUGGING UNIVERSAL
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: universal
archiveType: 'tar'
archiveFile: '$(Build.ArtifactStagingDirectory)/MacPango.tar.gz'
verbose: true # boolean. Force verbose output. Default: false.
# Publish Artifacts Libs
- task: PublishBuildArtifacts@1
displayName: Publish Libs
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)/MacPango.tar.gz
artifactName: MacPango
###########################
- job: CreateWinPangoLibsViaVcpkg
#condition: eq(true, false) # disable job for now
pool:
vmImage: 'windows-2022'
steps:
- bash: |
git clone https://github.com/TechSmith/vcpkg # clone the TSC fork because we have some customizations
cd vcpkg
./bootstrap-vcpkg.sh
displayName: Setup vcpkg
- bash: |
./vcpkg/vcpkg.exe install pango:x64-windows-dynamic-release
workingDirectory: $(Build.SourcesDirectory)
displayName: Run vcpkg install
- bash: |
./vcpkg list > ../versions.txt
./vcpkg list --x-json > ../versions.json
workingDirectory: vcpkg
displayName: Save library versions to a text and json file
- bash: |
ls -l vcpkg/installed/x64-windows-dynamic-release/include
ls -l vcpkg/installed/x64-windows-dynamic-release/lib
displayName: DEBUGGING
- bash: |
ls -l
rm -rf tools
rm -rf share
rm -rf debug # shouldn't need this
workingDirectory: vcpkg/installed/x64-windows-dynamic-release
displayName: Remove stuff we don't want
- bash: |
cp versions.txt vcpkg/installed/x64-windows-dynamic-release
cp versions.json vcpkg/installed/x64-windows-dynamic-release
displayName: Copy versions.txt/json to archive stage
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: vcpkg/installed/x64-windows-dynamic-release
archiveType: 'tar'
archiveFile: '$(Build.ArtifactStagingDirectory)/WinPango.tar.gz'
verbose: true # boolean. Force verbose output. Default: false.
# Publish Artifacts Libs
- task: PublishBuildArtifacts@1
displayName: Publish Libs
inputs:
pathToPublish: $(Build.ArtifactStagingDirectory)/WinPango.tar.gz
artifactName: WinPango