Skip to content
This repository has been archived by the owner on Dec 27, 2020. It is now read-only.

Commit

Permalink
Fix: [AzurePipelines] Windows VMs now contain vcpkg out-of-the-box
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueBrain committed Mar 30, 2019
1 parent a65d03f commit a179ae7
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions azure-pipelines-windows.yml
Expand Up @@ -17,27 +17,31 @@ jobs:
vmImage: 'VS2017-Win2016'

steps:
- script: |
git clone https://github.com/Microsoft/vcpkg.git
vcpkg\bootstrap-vcpkg.bat
displayName: 'Install vcpkg'
- script: |
vcpkg\vcpkg.exe install freetype:x64-windows-static liblzma:x64-windows-static libpng:x64-windows-static lzo:x64-windows-static zlib:x64-windows-static
- bash: |
set -ex
cd /c/vcpkg
ls -lh
git status
git branch -v
git pull
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\vcpkg.exe install freetype:x86-windows-static liblzma:x86-windows-static libpng:x86-windows-static lzo:x86-windows-static zlib:x86-windows-static
- 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'
- script: |
rmdir /s /q vcpkg\.git
rmdir /q vcpkg\.gitattributes
rmdir /q vcpkg\.gitignore
rmdir /s /q vcpkg\buildtrees
rmdir /s /q vcpkg\docs
rmdir /s /q vcpkg\downloads
rmdir /s /q vcpkg\packages
rmdir /s /q vcpkg\ports
rmdir /s /q vcpkg\toolsrc
mv vcpkg windows-dependencies
- bash: |
set -ex
ls -lh /c/vcpkg
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
Expand Down

0 comments on commit a179ae7

Please sign in to comment.