Skip to content

Commit

Permalink
Add crossbuild for coreroot building in perf-job.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LoopedBard3 committed May 8, 2023
1 parent fc1cb19 commit e45a4cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion eng/pipelines/coreclr/templates/perf-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ parameters:
onlySanityCheck: false
downloadSpecificBuild: null # buildId, pipeline, branchName, project
perfForkToUse: {} # url, branch
crossBuild: false

### Perf job

Expand Down Expand Up @@ -109,6 +110,7 @@ jobs:
variables:
- ${{ each variable in parameters.variables }}:
- ${{insert}}: ${{ variable }}
- _crossBuildPropertyArg: ''

- name: _compareArg
${{ if eq(parameters.compare, 'true') }}:
Expand All @@ -123,6 +125,9 @@ jobs:
- name: extraSetupParametersSuffix
value: "$(_compareArg) $(_onlySanityCheckArg) $(_perfForkArg)"

- ${{ if eq(parameters.crossBuild, true) }}:
- _crossBuildPropertyArg: '-cross'

frameworks:
- ${{ parameters.framework }}
steps:
Expand Down Expand Up @@ -253,7 +258,7 @@ jobs:
checkDownloadedFiles: true

# Create Core_Root
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(buildConfig) $(archType) generatelayoutonly $(librariesOverrideArg)
- script: $(Build.SourcesDirectory)/src/tests/build$(scriptExt) $(buildConfig) $(archType) generatelayoutonly $(librariesOverrideArg) $(_crossBuildPropertyArg)
displayName: Create Core_Root
condition: and(succeeded(), ne(variables.runtimeFlavorName, 'Mono'), ne('${{ parameters.runtimeType }}', 'wasm'))

Expand Down

0 comments on commit e45a4cc

Please sign in to comment.