Skip to content

Commit

Permalink
Use checkout template, feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcollins authored and mandel-macaque committed Nov 23, 2022
1 parent d2941a5 commit 7fefff2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 12 deletions.
15 changes: 10 additions & 5 deletions build-tools/automation/yaml-templates/build-linux.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
parameters:
buildPool: android-devdiv-ubuntu-vmss
checkoutCommit: ''
checkoutPath: 's/xamarin-android'
checkoutPersistCredentials: false
dependsOn: ''
dependsOnResult: ''
jobName: linux_build_create_sdk_pack
jobDisplayName: Linux > Build
repoAlias: self
repositoryAlias: self
stageName: linux_build
stageDisplayName: Linux

Expand All @@ -25,10 +28,12 @@ stages:
CXX: g++-10
CC: gcc-10
steps:
- checkout: ${{ parameters.repoAlias }}
clean: true
submodules: recursive
path: s/xamarin-android
- template: sdk-unified/steps/checkout/v1.yml@yaml-templates
parameters:
resource: ${{ parameters.repositoryAlias }}
commit: ${{ parameters.checkoutCommit }}
path: ${{ parameters.checkoutPath }}
persistCredentials: ${{ parameters.checkoutPersistCredentials }}

- checkout: monodroid
clean: true
Expand Down
14 changes: 10 additions & 4 deletions build-tools/automation/yaml-templates/build-macos.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
parameters:
buildPoolName: $(MacBuildPoolName)
buildPoolImage: $(MacBuildPoolImage)
checkoutCommit: ''
checkoutPath: 's/xamarin-android'
checkoutPersistCredentials: false
dependsOn: ''
dependsOnResult: ''
jobName: mac_build_create_installers
jobDisplayName: macOS > Build
provisionatorChannel: latest
repoAlias: self
repositoryAlias: self
signClassicPkgContent: false
stageName: mac_build
stageDisplayName: Mac
Expand All @@ -31,9 +34,12 @@ stages:
workspace:
clean: all
steps:
- checkout: ${{ parameters.repoAlias }}
submodules: recursive
path: s/xamarin-android
- template: sdk-unified/steps/checkout/v1.yml@yaml-templates
parameters:
resource: ${{ parameters.repositoryAlias }}
commit: ${{ parameters.checkoutCommit }}
path: ${{ parameters.checkoutPath }}
persistCredentials: ${{ parameters.checkoutPersistCredentials }}

- template: install-microbuild-tooling.yaml
parameters:
Expand Down
13 changes: 10 additions & 3 deletions build-tools/automation/yaml-templates/build-windows.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
parameters:
buildPool: $(1ESWindowsPool)
checkoutCommit: ''
checkoutPath: ''
checkoutPersistCredentials: false
dependsOn: ''
dependsOnResult: ''
jobName: win_build_test
jobDisplayName: Windows > Build & Smoke Test
repoAlias: self
repositoryAlias: self
stageName: win_build_test
stageDisplayName: Windows

Expand All @@ -22,8 +25,12 @@ stages:
pool: ${{ parameters.buildPool }}
timeoutInMinutes: 360
steps:
- checkout: ${{ parameters.repoAlias }}
submodules: recursive
- template: sdk-unified/steps/checkout/v1.yml@yaml-templates
parameters:
resource: ${{ parameters.repositoryAlias }}
commit: ${{ parameters.checkoutCommit }}
path: ${{ parameters.checkoutPath }}
persistCredentials: ${{ parameters.checkoutPersistCredentials }}

- template: kill-processes.yaml

Expand Down

0 comments on commit 7fefff2

Please sign in to comment.