Skip to content

Commit

Permalink
[azure-pipelines] add vcpkg dependencies pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Raffaello committed May 23, 2020
1 parent 2ead297 commit f89860f
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 29 deletions.
72 changes: 43 additions & 29 deletions azure-pipelines/analyzer.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,40 @@
trigger:
branches:
include:
- master
paths:
exclude:
#- .gitignore
- .github/*
- README.md
- appveyor.yml
tags:
include:
- '*'
# trigger:
# branches:
# include:
# - master
# paths:
# exclude:
# #- .gitignore
# - .github/*
# - README.md
# - appveyor.yml
# tags:
# include:
# - '*'

pr:
branches:
include:
- master
paths:
exclude:
#- .gitignore
- .github/*
- README.md
- appveyor.yml
- LICENSE
# pr:
# branches:
# include:
# - master
# paths:
# exclude:
# #- .gitignore
# - .github/*
# - README.md
# - appveyor.yml
# - LICENSE

trigger: none
pr: none
resources:
pipelines:
- pipeline: Raffaello.sdl2-vga-terminal.vcpkg
project: sdl2-vga-terminal
source: Raffaello.sdl2-vga-terminal.vcpkg
trigger:
branches:
include:
- '*'

variables:
- template: variables/global.yml
Expand All @@ -41,11 +53,13 @@ stages:
pool:
vmImage: $(imageName)
steps:
- template: templates/dep-vcpkg-steps.yml
parameters:
vcpkg_key_cache: $(CACHE_VCPKG_KEY)
triplet: $(TRIPLET)
arch: $(ARCH)
# - template: templates/dep-vcpkg-steps.yml
# parameters:
# vcpkg_key_cache: $(CACHE_VCPKG_KEY)
# triplet: $(TRIPLET)
# arch: $(ARCH)
- download: Raffaello.sdl2-vga-terminal.vcpkg
artifact: dep-vcpkg


- stage: Analyzer
Expand Down
54 changes: 54 additions & 0 deletions azure-pipelines/vcpkg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
trigger:
branches:
include:
- master
paths:
exclude:
#- .gitignore
- .github/*
- README.md
- appveyor.yml
tags:
include:
- '*'

pr:
branches:
include:
- master
paths:
exclude:
#- .gitignore
- .github/*
- README.md
- appveyor.yml
- LICENSE

variables:
- template: variables/global.yml
- template: variables/images.yml
- template: variables/build_switches.yml

stages:
- stage: Dep
jobs:
- job: vcpkg
strategy:
matrix:
osx:
imageName: ${{ variables.mac_image }}
TRIPLET: x64-osx
pool:
vmImage: $(imageName)
steps:
- template: templates/dep-vcpkg-steps.yml
parameters:
vcpkg_key_cache: $(CACHE_VCPKG_KEY)
triplet: $(TRIPLET)
arch: $(ARCH)
# - task: CopyFiles@2
# inputs:
# contents: '$(Build.SourcesDirectory)/vcpkg'
# targetFolder: $(Build.ArtifactStagingDirectory)
- publish: '$(Build.SourcesDirectory)/vcpkg'
artifact: dep-vcpkg

0 comments on commit f89860f

Please sign in to comment.