Skip to content

Commit

Permalink
Validate WinUI cake scripts inside CI (dotnet#1107)
Browse files Browse the repository at this point in the history
* Validate winui cake scripts inside CI

* Update handlers.yml

* - provision

* - build winui
  • Loading branch information
PureWeen authored and lytico committed Jun 8, 2021
1 parent 786deb2 commit f563c92
Showing 1 changed file with 39 additions and 36 deletions.
75 changes: 39 additions & 36 deletions eng/pipelines/handlers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,42 +122,45 @@ stages:
steps:
- template: common/build-windows.yml

# - stage: windows_cake_validation
# displayName: Windows Cake Validation
# dependsOn: []
# jobs:
# - ${{ each BuildCondition in parameters.BuildConfigurations }}:
# - job: win_hosted_${{ BuildCondition }}
# workspace:
# clean: all
# displayName: Build Windows Phase (${{ BuildCondition }})
# condition: or(
# ${{ parameters.BuildEverything }},
# ne(variables['Build.Reason'], 'PullRequest'),
# eq('${{ BuildCondition }}', 'Release'))
# timeoutInMinutes: 60
# pool:
# name: $(vs2019VmPool)
# vmImage: $(vs2019VmImage)
# demands: [ msbuild ]
# steps:
# - powershell: |
# & dotnet cake --target=dotnet
# $env:PATH = (Join-Path '$(System.DefaultWorkingDirectory)' 'bin/dotnet') + [IO.Path]::PathSeparator + $env:PATH
# & dotnet cake --target=VS-WINUI-CI --configuration=${{ BuildCondition }}
# - task: CopyFiles@2
# displayName: 'Copy Bin Log Files'
# condition: always()
# inputs:
# Contents: |
# **/*.binlog
# TargetFolder: $(build.artifactstagingdirectory)
# flattenFolders: true
# - task: PublishBuildArtifacts@1
# condition: always()
# displayName: publish artifacts
# inputs:
# ArtifactName: win_build_cake
- stage: windows_cake_validation
displayName: Windows Cake Validation
dependsOn: []
jobs:
- ${{ each BuildCondition in parameters.BuildConfigurations }}:
- job: win_hosted_${{ BuildCondition }}
workspace:
clean: all
displayName: Build Windows Phase (${{ BuildCondition }})
condition: or(
${{ parameters.BuildEverything }},
ne(variables['Build.Reason'], 'PullRequest'),
eq('${{ BuildCondition }}', 'Release'))
timeoutInMinutes: 60
pool:
name: $(vs2019VmPool)
vmImage: $(vs2019VmImage)
demands: [ msbuild ]
steps:
- task: xamops.azdevex.provisionator-task.provisionator@1
displayName: 'Provision VSWindows'
inputs:
provisioning_script: $(provisionator.vs2019)
- powershell: |
& dotnet cake --target=VS-WINUI-CI --configuration=${{ BuildCondition }}
displayName: 'Build WinUI SLN'
- task: CopyFiles@2
displayName: 'Copy Bin Log Files'
condition: always()
inputs:
Contents: |
**/*.binlog
TargetFolder: $(build.artifactstagingdirectory)
flattenFolders: true
- task: PublishBuildArtifacts@1
condition: always()
displayName: publish artifacts
inputs:
ArtifactName: win_build_cake

- stage: build_osx
displayName: iOS
Expand Down

0 comments on commit f563c92

Please sign in to comment.