forked from OpenTTD/CompileFarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-windows.yml
53 lines (49 loc) · 1.63 KB
/
azure-pipelines-windows.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
trigger:
- master
# Only run this pipeline on a Pull Request if this file is modified; the rest
# is all for azure-pipelines-linux to handle.
pr:
branches:
include:
- master
paths:
include:
- azure-pipelines-windows.yml
jobs:
- job: WindowsDependencies
displayName: 'Windows Dependencies'
pool:
vmImage: 'VS2017-Win2016'
steps:
- script: |
cd /d c:\vcpkg
git pull
.\bootstrap-vcpkg.bat
displayName: 'Update vcpkg'
- script: vcpkg.exe install freetype:x64-windows-static liblzma:x64-windows-static libpng:x64-windows-static lzo:x64-windows-static zlib:x64-windows-static
displayName: 'Install x64 dependencies'
- script: vcpkg.exe install freetype:x86-windows-static liblzma:x86-windows-static libpng:x86-windows-static lzo:x86-windows-static zlib:x86-windows-static
displayName: 'Install x86 dependencies'
- bash: |
set -ex
rm -rf /c/vcpkg/.git*
rm -rf /c/vcpkg/buildtrees
rm -rf /c/vcpkg/docs
rm -rf /c/vcpkg/downloads
rm -rf /c/vcpkg/packages
rm -rf /c/vcpkg/ports
rm -rf /c/vcpkg/toolsrc
mv /c/vcpkg windows-dependencies
displayName: 'Remove unused files'
- task: ArchiveFiles@2
displayName: Archive
inputs:
rootFolderOrFile: 'windows-dependencies'
archiveFile: 'windows-dependencies.zip'
# Only publish when it triggered on 'master' (and not on a Pull Request)
- task: PublishBuildArtifacts@1
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
displayName: Publish
inputs:
PathtoPublish: windows-dependencies.zip
ArtifactName: 'windows-dependencies'