Add workloads support
This commit is contained in:
Родитель
a53910dc2f
Коммит
9f0ce88c73
|
@ -5,6 +5,8 @@ parameters:
|
|||
default: ''
|
||||
- name: BuildConfiguration
|
||||
default: ''
|
||||
- name: Workloads
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
- job: ${{ parameters.name }}
|
||||
|
@ -12,11 +14,19 @@ jobs:
|
|||
vmImage: ${{ parameters.vmImage }}
|
||||
variables:
|
||||
BuildConfiguration: ${{ parameters.BuildConfiguration }}
|
||||
Workloads: ${{ parameters.Workloads }}
|
||||
steps:
|
||||
- task: UseDotNet@2
|
||||
displayName: Install .NET Core SDK
|
||||
inputs:
|
||||
useGlobalJson: true
|
||||
- task: DotNetCoreCLI@2
|
||||
condition: ne(variables.Workloads, '')
|
||||
displayName: Install workloads
|
||||
inputs:
|
||||
command: 'custom'
|
||||
custom: 'workload'
|
||||
arguments: 'install $(Workloads)'
|
||||
- task: PowerShell@2
|
||||
displayName: Nuke Target Pack
|
||||
inputs:
|
||||
|
|
|
@ -5,6 +5,8 @@ parameters:
|
|||
default: ''
|
||||
- name: BuildConfiguration
|
||||
default: ''
|
||||
- name: Workloads
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
- job: ${{ parameters.name }}
|
||||
|
@ -12,11 +14,19 @@ jobs:
|
|||
vmImage: ${{ parameters.vmImage }}
|
||||
variables:
|
||||
BuildConfiguration: ${{ parameters.BuildConfiguration }}
|
||||
Workloads: ${{ parameters.Workloads }}
|
||||
steps:
|
||||
- task: UseDotNet@2
|
||||
displayName: Install .NET Core SDK
|
||||
inputs:
|
||||
useGlobalJson: true
|
||||
- task: DotNetCoreCLI@2
|
||||
condition: ne(variables.Workloads, '')
|
||||
displayName: Install workloads
|
||||
inputs:
|
||||
command: 'custom'
|
||||
custom: 'workload'
|
||||
arguments: 'install $(Workloads)'
|
||||
- task: PowerShell@2
|
||||
displayName: Nuke Target Pack
|
||||
inputs:
|
||||
|
|
|
@ -11,6 +11,8 @@ parameters:
|
|||
default: ''
|
||||
- name: PublishRuntime
|
||||
default: ''
|
||||
- name: Workloads
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
- job: ${{ parameters.name }}
|
||||
|
@ -21,11 +23,19 @@ jobs:
|
|||
PublishFramework: ${{ parameters.PublishFramework }}
|
||||
PublishProject: ${{ parameters.PublishProject }}
|
||||
PublishRuntime: ${{ parameters.PublishRuntime }}
|
||||
Workloads: ${{ parameters.Workloads }}
|
||||
steps:
|
||||
- task: UseDotNet@2
|
||||
displayName: Install .NET Core SDK
|
||||
inputs:
|
||||
useGlobalJson: true
|
||||
- task: DotNetCoreCLI@2
|
||||
condition: ne(variables.Workloads, '')
|
||||
displayName: Install workloads
|
||||
inputs:
|
||||
command: 'custom'
|
||||
custom: 'workload'
|
||||
arguments: 'install $(Workloads)'
|
||||
- task: Bash@3
|
||||
displayName: Nuke Target Publish
|
||||
inputs:
|
||||
|
|
|
@ -11,6 +11,8 @@ parameters:
|
|||
default: ''
|
||||
- name: PublishRuntime
|
||||
default: ''
|
||||
- name: Workloads
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
- job: ${{ parameters.name }}
|
||||
|
@ -21,11 +23,19 @@ jobs:
|
|||
PublishFramework: ${{ parameters.PublishFramework }}
|
||||
PublishProject: ${{ parameters.PublishProject }}
|
||||
PublishRuntime: ${{ parameters.PublishRuntime }}
|
||||
Workloads: ${{ parameters.Workloads }}
|
||||
steps:
|
||||
- task: UseDotNet@2
|
||||
displayName: Install .NET Core SDK
|
||||
inputs:
|
||||
useGlobalJson: true
|
||||
- task: DotNetCoreCLI@2
|
||||
condition: ne(variables.Workloads, '')
|
||||
displayName: Install workloads
|
||||
inputs:
|
||||
command: 'custom'
|
||||
custom: 'workload'
|
||||
arguments: 'install $(Workloads)'
|
||||
- task: PowerShell@2
|
||||
displayName: Nuke Target Publish
|
||||
inputs:
|
||||
|
|
|
@ -5,6 +5,8 @@ parameters:
|
|||
default: ''
|
||||
- name: BuildConfiguration
|
||||
default: ''
|
||||
- name: Workloads
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
- job: ${{ parameters.name }}
|
||||
|
@ -12,11 +14,19 @@ jobs:
|
|||
vmImage: ${{ parameters.vmImage }}
|
||||
variables:
|
||||
BuildConfiguration: ${{ parameters.BuildConfiguration }}
|
||||
Workloads: ${{ parameters.Workloads }}
|
||||
steps:
|
||||
- task: UseDotNet@2
|
||||
displayName: Install .NET Core SDK
|
||||
inputs:
|
||||
useGlobalJson: true
|
||||
- task: DotNetCoreCLI@2
|
||||
condition: ne(variables.Workloads, '')
|
||||
displayName: Install workloads
|
||||
inputs:
|
||||
command: 'custom'
|
||||
custom: 'workload'
|
||||
arguments: 'install $(Workloads)'
|
||||
- task: Bash@3
|
||||
displayName: Nuke Target Test
|
||||
inputs:
|
||||
|
|
|
@ -5,6 +5,8 @@ parameters:
|
|||
default: ''
|
||||
- name: BuildConfiguration
|
||||
default: ''
|
||||
- name: Workloads
|
||||
default: ''
|
||||
|
||||
jobs:
|
||||
- job: ${{ parameters.name }}
|
||||
|
@ -12,11 +14,19 @@ jobs:
|
|||
vmImage: ${{ parameters.vmImage }}
|
||||
variables:
|
||||
BuildConfiguration: ${{ parameters.BuildConfiguration }}
|
||||
Workloads: ${{ parameters.Workloads }}
|
||||
steps:
|
||||
- task: UseDotNet@2
|
||||
displayName: Install .NET Core SDK
|
||||
inputs:
|
||||
useGlobalJson: true
|
||||
- task: DotNetCoreCLI@2
|
||||
condition: ne(variables.Workloads, '')
|
||||
displayName: Install workloads
|
||||
inputs:
|
||||
command: 'custom'
|
||||
custom: 'workload'
|
||||
arguments: 'install $(Workloads)'
|
||||
- task: PowerShell@2
|
||||
displayName: Nuke Target Test
|
||||
inputs:
|
||||
|
|
Загрузка…
Ссылка в новой задаче