diff --git a/Pack-MyGet.yml b/Pack-MyGet.yml index 4a8ea85..55e7698 100644 --- a/Pack-MyGet.yml +++ b/Pack-MyGet.yml @@ -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: diff --git a/Pack-NuGet.yml b/Pack-NuGet.yml index 1ce3bc5..0d1ba07 100644 --- a/Pack-NuGet.yml +++ b/Pack-NuGet.yml @@ -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: diff --git a/Publish-Bash.yml b/Publish-Bash.yml index 116f29e..fcda3e3 100644 --- a/Publish-Bash.yml +++ b/Publish-Bash.yml @@ -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: diff --git a/Publish-PowerShell.yml b/Publish-PowerShell.yml index 6332cda..9724781 100644 --- a/Publish-PowerShell.yml +++ b/Publish-PowerShell.yml @@ -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: diff --git a/Test-Bash.yml b/Test-Bash.yml index ffa7291..e9178c7 100644 --- a/Test-Bash.yml +++ b/Test-Bash.yml @@ -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: diff --git a/Test-PowerShell.yml b/Test-PowerShell.yml index 378f588..ea528ff 100644 --- a/Test-PowerShell.yml +++ b/Test-PowerShell.yml @@ -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: