Skip to content

Commit 943b9fb

Browse files
authored
Specify rid for publish (#10902)
1 parent 4288445 commit 943b9fb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

eng/ci/templates/official/jobs/setup-benchmark-agents.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ jobs:
2626
agentId: ${{ parameters.functionAppName }}${{ parameters.os }}
2727
functionApp: ${{ parameters.functionAppName }}
2828
functionAppOutputPath: $(Build.ArtifactStagingDirectory)/FunctionApps/$(functionApp)
29-
29+
${{ if eq(parameters.os, 'Linux') }}:
30+
publishRid: linux-x64
31+
${{ if eq(parameters.os, 'Windows') }}:
32+
publishRid: win-x64
3033
steps:
3134

3235
- template: /eng/ci/templates/install-dotnet.yml@self
@@ -58,7 +61,7 @@ jobs:
5861
zipAfterPublish: false
5962
modifyOutputPath: false
6063
projects: '$(Build.ArtifactStagingDirectory)/PerformanceTestApps/$(functionApp)/HelloHttp.csproj'
61-
arguments: -c Release -o $(functionAppOutputPath) -f net9.0
64+
arguments: -c Release -o $(functionAppOutputPath) -f net9.0 -r $(publishRid)
6265
workingDirectory: $(Build.ArtifactStagingDirectory)/PerformanceTestApps/$(functionApp)
6366

6467
- ${{ if eq(parameters.os, 'Windows') }}:

0 commit comments

Comments
 (0)