Skip to content

Commit e74945e

Browse files
committed
try to Install missing native tooling for NativeAOT build
1 parent 0ace18c commit e74945e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

eng/performance/benchmark_jobs.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ jobs:
5858
- ${{ if or(eq(parameters.osVersion, '1604'), eq(parameters.architecture, 'arm64'))}}:
5959
- name: ArtifactsDirectory
6060
value: '$HELIX_WORKITEM_PAYLOAD/artifacts/BenchmarkDotNet.Artifacts'
61+
- ${{ if eq(parameters.osName, 'ubuntu')}}:
62+
- name: InstallPrerequisites
63+
value: 'sudo apt-get -y install python3-venv'
64+
- ${{ if eq(parameters.osName, 'centos')}}:
65+
- name: InstallPrerequisites
66+
value: 'sudo yum -y install clang zlib-devel krb5-libs krb5-devel'
6167
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
6268
# for public runs, we do not want to upload perflab data
6369
- name: PerfLabArguments
@@ -70,7 +76,7 @@ jobs:
7076
- name: HelixApiAccessToken
7177
value: ''
7278
- name: HelixPreCommand
73-
value: '$(PreservePythonPath);$(AdditionalHelixPreCommands)'
79+
value: '$(PreservePythonPath);$(AdditionalHelixPreCommands);$(InstallPrerequisites);'
7480
- name: HelixSourcePrefix
7581
value: "pr"
7682
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
@@ -89,7 +95,7 @@ jobs:
8995
value: '$(PreservePythonPath);py -3 -m venv %HELIX_WORKITEM_PAYLOAD%\.venv;call %HELIX_WORKITEM_PAYLOAD%\.venv\Scripts\activate.bat;set PYTHONPATH=;py -3 -m pip install azure.storage.blob==12.0.0 --force-reinstall;py -3 -m pip install azure.storage.queue==12.0.0 --force-reinstall;set "PERFLAB_UPLOAD_TOKEN=$(PerfCommandUploadToken)";$(AdditionalHelixPreCommands)'
9096
- ${{ if ne(parameters.osName, 'windows') }}:
9197
- name: HelixPreCommand
92-
value: '$(PreservePythonPath);$(SetAllowOpenSsl102);sudo apt-get -y install python3-venv;python3 -m venv $HELIX_WORKITEM_PAYLOAD/.venv;. $HELIX_WORKITEM_PAYLOAD/.venv/bin/activate;export PYTHONPATH=;python3 -m pip install -U pip;pip3 install azure.storage.blob==12.0.0 --force-reinstall;pip3 install azure.storage.queue==12.0.0 --force-reinstall;export PERFLAB_UPLOAD_TOKEN="$(PerfCommandUploadTokenLinux)";$(AdditionalHelixPreCommands)'
98+
value: '$(PreservePythonPath);$(SetAllowOpenSsl102);$(InstallPrerequisites);python3 -m venv $HELIX_WORKITEM_PAYLOAD/.venv;. $HELIX_WORKITEM_PAYLOAD/.venv/bin/activate;export PYTHONPATH=;python3 -m pip install -U pip;pip3 install azure.storage.blob==12.0.0 --force-reinstall;pip3 install azure.storage.queue==12.0.0 --force-reinstall;export PERFLAB_UPLOAD_TOKEN="$(PerfCommandUploadTokenLinux)";$(AdditionalHelixPreCommands)'
9399
- group: DotNet-HelixApi-Access
94100
# perflab upload tokens still exist in this variable group
95101
- group: dotnet-benchview

0 commit comments

Comments
 (0)