From 9f0ce88c7379fe0bc03937bd1e3c2d4002dda9fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20=C5=A0olt=C3=A9s?= Date: Tue, 11 Oct 2022 14:01:09 +0200 Subject: [PATCH] Add workloads support --- Pack-MyGet.yml | 10 ++++++++++ Pack-NuGet.yml | 10 ++++++++++ Publish-Bash.yml | 10 ++++++++++ Publish-PowerShell.yml | 10 ++++++++++ Test-Bash.yml | 10 ++++++++++ Test-PowerShell.yml | 10 ++++++++++ 6 files changed, 60 insertions(+) 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: