Skip to content

Commit

Permalink
ADO Pipeline Variables (#1080)
Browse files Browse the repository at this point in the history
  • Loading branch information
j0shuams authored Jan 20, 2022
1 parent bfd6846 commit d60484d
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 17 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*.c
*.winmd
*test*.xml
build
obj
packages
Debug
Expand Down
24 changes: 12 additions & 12 deletions build/AzurePipelineTemplates/CsWinRT-BuildAndTest-Stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ stages:
maxParallel: 10
matrix:
x64_Debug:
BuildPlatform: x64
BuildConfiguration: debug
BuildPlatform: 'x64'
BuildConfiguration: 'debug'
x86_Debug:
BuildPlatform: x86
BuildConfiguration: debug
BuildPlatform: 'x86'
BuildConfiguration: 'debug'
arm64_Debug:
BuildPlatform: arm64
BuildConfiguration: debug
BuildPlatform: 'arm64'
BuildConfiguration: 'debug'
x64_Release:
BuildPlatform: x64
BuildConfiguration: release
BuildPlatform: 'x64'
BuildConfiguration: 'release'
x86_Release:
BuildPlatform: x86
BuildConfiguration: release
BuildPlatform: 'x86'
BuildConfiguration: 'release'
arm64_Release:
BuildPlatform: arm64
BuildConfiguration: release
BuildPlatform: 'arm64'
BuildConfiguration: 'release'

steps:
- checkout: self
Expand Down
11 changes: 7 additions & 4 deletions build/AzurePipelineTemplates/CsWinRT-Pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# This file is used as basis for the ADO pipeline
variables:
- template: CsWinRT-Variables.yml

name: $(MajorVersion).$(MinorVersion).$(PatchVersion)$(PrereleaseVersion).$(date:yyMMdd)$(rev:.r)

stages:
- template: CsWinRT-BuildAndTest-Stage.yml

- template: CsWinRT-PublishToNuget-Stage.yml

# if we are doing a release build, publish the build to Maestro
- ${{ if eq( '$(PrereleaseVersion)', '') }}:
template: CsWinRT-PublishToMaestro-Stage.yml
- template: CsWinRT-PublishToMaestro-Stage.yml
parameters:
${{ if eq(variables['PrereleaseVersion'], '') }}:
IsRelease: true
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
parameters:
IsRelease: ''

stages:
- stage: PublishToMaestro
displayName: Trigger Maestro Publish
jobs:
- job: TriggerMaestroPublish
condition: eq('${{ parameters.IsRelease }}','true')
variables:
_DotNetCoreRuntimeVersion: 5.0.11 # matches with SDK v. 5.0.402
_WindowsSdkPackageVersion: 10.0.18362.22 # matches with one consumed in WindowsAppSdk
Expand Down
12 changes: 12 additions & 0 deletions build/AzurePipelineTemplates/CsWinRT-Variables.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
variables:
DotNetRuntimeVersion: '5.0.11'
MajorVersion: 1
MinorVersion: 4
PatchVersion: 2
PrereleaseVersion: '-prerelease'
WinRT.Runtime.AssemblyVersion: '1.4.0.0'
Net5.SDK.Feed: 'https://dotnetcli.blob.core.windows.net/dotnet'
Net5.SDK.Version: '5.0.402'
Net6.SDK.Version: '6.0.100-rc.2.21505.57'
NoSamples: 'false'

0 comments on commit d60484d

Please sign in to comment.