mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-03 23:49:44 +00:00
### Description 1. Add a Memory Profiling build job 2. Remove no absl build job since the feature will be removed 3. Simplify post-merge-jobs.yml by unifying the pool names ### Motivation and Context To catch build errors in #16124
53 lines
2 KiB
YAML
53 lines
2 KiB
YAML
parameters:
|
|
- name: AdditionalBuildFlags
|
|
displayName: Additional build flags for build.py
|
|
type: string
|
|
default: ''
|
|
|
|
- name: stage_name_suffix
|
|
displayName: Suffix for stage name as every stage name needs to be unique
|
|
type: string
|
|
default: 'CPU'
|
|
|
|
- name: ArtifactNamePrefix
|
|
displayName: Prefix for artifact name
|
|
type: string
|
|
default: onnxruntime
|
|
|
|
- name: PackageJava
|
|
type: boolean
|
|
default: true
|
|
|
|
- name: PackageNodejs
|
|
type: boolean
|
|
default: true
|
|
|
|
stages:
|
|
- stage: Linux_C_API_Packaging_${{ parameters.stage_name_suffix }}
|
|
dependsOn: [ ]
|
|
jobs:
|
|
- template: c-api-linux-cpu.yml
|
|
parameters:
|
|
AdditionalBuildFlags: ${{ parameters.AdditionalBuildFlags }}
|
|
BaseImage: 'centos:7'
|
|
OnnxruntimeArch: 'x64'
|
|
OnnxruntimeCFlags: '-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -fcf-protection -O3 -Wl,--strip-all'
|
|
OnnxruntimeCXXFlags: '-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -fcf-protection -O3 -Wl,--strip-all'
|
|
OnnxruntimeNodejsBindingArch: 'x64'
|
|
PoolName: 'onnxruntime-Ubuntu2004-AMD-CPU'
|
|
ArtifactNamePrefix: ${{ parameters.ArtifactNamePrefix }}
|
|
PackageJava: ${{ parameters.PackageJava }}
|
|
PackageNodeJS: ${{ parameters.PackageNodeJS }}
|
|
|
|
- template: c-api-linux-cpu.yml
|
|
parameters:
|
|
AdditionalBuildFlags: ${{ parameters.AdditionalBuildFlags }}
|
|
BaseImage: 'arm64v8/centos:7'
|
|
OnnxruntimeArch: 'aarch64'
|
|
OnnxruntimeCFlags: '-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -O3 -Wl,--strip-all'
|
|
OnnxruntimeCXXFlags: '-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -O3 -Wl,--strip-all'
|
|
OnnxruntimeNodejsBindingArch: 'arm64'
|
|
PoolName: 'aiinfra-linux-ARM64-CPU-2019'
|
|
ArtifactNamePrefix: ${{ parameters.ArtifactNamePrefix }}
|
|
PackageJava: ${{ parameters.PackageJava }}
|
|
PackageNodeJS: ${{ parameters.PackageNodeJS }}
|