438b0e545f
Add meta properties to mac VSTS YAML - Add a property to clean the build machine - Add a property to set the format of the build name - add a property to set which queue to run the build in
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
resources:
|
|
- repo: self
|
|
clean: true
|
|
queue:
|
|
name: Hosted macOS Preview
|
|
name: macOS_$(Build.SourceBranchName)_$(Build.BuildId)
|
|
steps:
|
|
#- task: <task type name>@<version>
|
|
# inputs:
|
|
# <task specific inputs>
|
|
# displayName: '<display name of task>'
|
|
- task: ShellScript@2
|
|
inputs:
|
|
scriptPath: 'tools/releaseBuild/setReleaseTag.sh'
|
|
args: '-ReleaseTag $(ReleaseTagVar) -Variable "ReleaseTagVar"'
|
|
displayName: 'Calculate Release Tag'
|
|
- task: ShellScript@2
|
|
inputs:
|
|
scriptPath: 'tools/installpsh-osx.sh'
|
|
displayName: 'Install pwsh'
|
|
- task: ShellScript@2
|
|
inputs:
|
|
scriptPath: 'tools/releaseBuild/macOS/createPowerShell.sh'
|
|
displayName: 'Create /PowerShell'
|
|
- task: ShellScript@2
|
|
inputs:
|
|
scriptPath: 'tools/releaseBuild/macOS/PowerShellPackageVsts.sh'
|
|
args: '-location $(Build.SourcesDirectory) -BootStrap'
|
|
displayName: 'Bootstrap VM'
|
|
- task: ShellScript@2
|
|
inputs:
|
|
scriptPath: 'tools/releaseBuild/macOS/PowerShellPackageVsts.sh'
|
|
args: '-ReleaseTag $(ReleaseTagVar) -Destination $(System.ArtifactsDirectory) -ExtraPackage "tar" -location $(Build.SourcesDirectory) -Build'
|
|
disableAutoCwd: true
|
|
cwd: 'tools/releaseBuild/macOS'
|
|
displayName: 'Build and Package'
|