Does this work??

This commit is contained in:
Michael Yanni 2024-03-19 09:59:38 -07:00
parent 414e1f754c
commit b1274e228e
2 changed files with 32 additions and 29 deletions

View file

@ -12,6 +12,8 @@ trigger:
variables:
- name: _PublishUsingPipelines
value: false
- name: _OneESPT
value: true
- ${{ if or(startswith(variables['Build.SourceBranch'], 'refs/heads/release/'), startswith(variables['Build.SourceBranch'], 'refs/heads/internal/release/'), eq(variables['Build.Reason'], 'Manual')) }}:
- name: PostBuildSign
value: false
@ -106,7 +108,7 @@ extends:
buildArchitecture: x64
additionalBuildParameters: '/p:PublishInternalAsset=true'
runTests: true
OneESPT: $(OneESPT)
OneESPT: true
# Linux
- template: eng/build.yml@self
@ -118,7 +120,7 @@ extends:
buildArchitecture: x64
linuxPortable: true
runTests: true
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Linux
@ -128,7 +130,7 @@ extends:
buildArchitecture: x64
linuxPortable: true
runTests: true
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Linux
@ -138,7 +140,7 @@ extends:
buildArchitecture: x64
linuxPortable: false
runTests: true
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Linux
@ -149,7 +151,7 @@ extends:
additionalBuildParameters: '/p:BuildSdkDeb=true'
linuxPortable: false
runTests: true
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Linux
@ -160,7 +162,7 @@ extends:
linuxPortable: true
# Never run tests on arm64
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Linux
@ -173,7 +175,7 @@ extends:
additionalBuildParameters: '/p:HostOSName="linux-musl"'
linuxPortable: false
runTests: true
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Linux
@ -182,7 +184,7 @@ extends:
buildArchitecture: x64
linuxPortable: true
runTests: true
OneESPT: $(OneESPT)
OneESPT: true
# MacOS
- template: eng/build.yml@self
@ -192,7 +194,7 @@ extends:
buildConfiguration: Release
buildArchitecture: x64
runTests: true
OneESPT: $(OneESPT)
OneESPT: true
# Official/PGO instrumentation Builds
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
@ -205,7 +207,7 @@ extends:
buildArchitecture: x64
additionalBuildParameters: '/p:PublishInternalAsset=true'
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Windows_NT
@ -213,7 +215,7 @@ extends:
buildConfiguration: Release
buildArchitecture: x86
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Windows_NT
@ -221,7 +223,7 @@ extends:
buildConfiguration: Release
buildArchitecture: arm64
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
# Linux
- template: eng/build.yml@self
@ -233,7 +235,7 @@ extends:
runtimeIdentifier: 'linux-arm'
linuxPortable: true
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Linux
@ -243,7 +245,7 @@ extends:
runtimeIdentifier: 'linux-arm64'
linuxPortable: true
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Linux
@ -255,7 +257,7 @@ extends:
additionalBuildParameters: '/p:OSName="linux-musl"'
linuxPortable: false
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Linux
@ -266,7 +268,7 @@ extends:
additionalBuildParameters: '/p:OSName="linux-musl"'
linuxPortable: false
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Linux
@ -279,7 +281,7 @@ extends:
additionalBuildParameters: '/p:HostOSName="linux-musl"'
linuxPortable: false
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Linux
@ -292,7 +294,7 @@ extends:
additionalBuildParameters: '/p:PublishBinariesAndBadge=false /p:BuildSdkDeb=true'
linuxPortable: true
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Linux
@ -305,7 +307,7 @@ extends:
additionalBuildParameters: '/p:PublishBinariesAndBadge=false /p:IsRPMBasedDistro=true'
linuxPortable: true
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Linux
@ -319,7 +321,7 @@ extends:
additionalBuildParameters: '/p:PublishBinariesAndBadge=false /p:CLIBUILD_SKIP_TESTS=true /p:IsRPMBasedDistro=true'
linuxPortable: true
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Linux
@ -328,7 +330,7 @@ extends:
buildArchitecture: x64
linuxPortable: true
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
# MacOS
- template: eng/build.yml@self
@ -338,7 +340,7 @@ extends:
buildConfiguration: Release
buildArchitecture: x64
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Darwin
@ -347,7 +349,7 @@ extends:
buildConfiguration: Release
buildArchitecture: arm64
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
# Windows PGO Instrumentation
- template: eng/build.yml@self
@ -359,7 +361,7 @@ extends:
buildArchitecture: x64
additionalBuildParameters: '/p:PublishInternalAsset=true'
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Windows_NT
@ -368,7 +370,7 @@ extends:
buildConfiguration: Release
buildArchitecture: x86
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Windows_NT
@ -377,7 +379,7 @@ extends:
buildConfiguration: Release
buildArchitecture: arm64
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
# Linux PGO Instrumentation
- template: eng/build.yml@self
@ -389,7 +391,7 @@ extends:
buildArchitecture: x64
linuxPortable: true
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
- template: eng/build.yml@self
parameters:
agentOs: Linux
@ -399,7 +401,7 @@ extends:
buildArchitecture: arm64
linuxPortable: true
runTests: false
OneESPT: $(OneESPT)
OneESPT: true
# Source Build
- template: /eng/common/templates-official/jobs/source-build.yml@self

View file

@ -101,7 +101,8 @@ jobs:
# - template: ${{ parameters.jobTemplatePath }}
# - ${{ if variables.OneESPT }}:
# - ${{ if eq(variables['OneESPT'], true) }}:
- ${{ if eq(parameters.OneESPT, true) }}:
# - ${{ if eq(parameters.OneESPT, true) }}:
- ${{ if eq(variables._OneESPT, true) }}:
- template: common/templates-official/job/job.yml
parameters:
# Set up the name of the job.