Run VMR's pipelines from the VMR directly (#15124)
This commit is contained in:
parent
dd0bce7b3f
commit
ce1921c17d
8 changed files with 130 additions and 91 deletions
52
src/SourceBuild/tarball/content/eng/pipelines/ci.yml
Normal file
52
src/SourceBuild/tarball/content/eng/pipelines/ci.yml
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
# This is the main build definition (PR+CI) for dotnet/dotnet
|
||||
|
||||
trigger:
|
||||
batch: true
|
||||
branches:
|
||||
include:
|
||||
- main
|
||||
- release/*
|
||||
- internal/release/*
|
||||
|
||||
pr:
|
||||
branches:
|
||||
include:
|
||||
- main
|
||||
- release/*
|
||||
- internal/release/*
|
||||
|
||||
stages:
|
||||
# For rolling builds we want to build the MSFT SDK first so that we can
|
||||
# compare the contents with the source-built one later.
|
||||
# This only works because we don't run this test in PRs. If we decided
|
||||
# to run this test in PRs, we would need to build the MSFT SDK there too.
|
||||
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||
- stage: Build_MSFT_SDK
|
||||
displayName: Build MSFT SDK
|
||||
jobs:
|
||||
- template: /src/installer/eng/build.yml
|
||||
parameters:
|
||||
agentOs: Linux
|
||||
jobName: Build_LinuxPortable_Release_x64
|
||||
buildConfiguration: Release
|
||||
buildArchitecture: x64
|
||||
linuxPortable: true
|
||||
runTests: false
|
||||
isBuiltFromVmr: true
|
||||
- template: /src/installer/eng/build.yml
|
||||
parameters:
|
||||
agentOs: Linux
|
||||
jobName: Build_Arm64_Release
|
||||
buildConfiguration: Release
|
||||
buildArchitecture: arm64
|
||||
runtimeIdentifier: 'linux-arm64'
|
||||
linuxPortable: true
|
||||
runTests: false
|
||||
isBuiltFromVmr: true
|
||||
|
||||
- template: /src/installer/eng/pipelines/templates/stages/vmr-build.yml
|
||||
parameters:
|
||||
isBuiltFromVmr: true
|
||||
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
|
||||
dependsOn: Build_MSFT_SDK
|
||||
condition: always()
|
||||
Reference in a new issue