Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 78 additions & 20 deletions .azure/pipelines/ci-public.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ stages:
# Code check
- template: jobs/default-build.yml
parameters:
condition: false # TEMPORARY: Disabled for testing Helix dedup
jobName: Code_check
jobDisplayName: Code check
agentOs: Windows
Expand All @@ -110,6 +111,7 @@ stages:
# Build Windows (x64/x86/arm64)
- template: jobs/default-build.yml
parameters:
condition: false # TEMPORARY: Disabled for testing Helix dedup
codeSign: true
jobName: Windows_build
jobDisplayName: "Build: Windows x64/x86/arm64"
Expand Down Expand Up @@ -229,6 +231,7 @@ stages:
# Build MacOS arm64
- template: jobs/default-build.yml
parameters:
condition: false # TEMPORARY: Disabled for testing Helix dedup
jobName: MacOs_arm64_build
jobDisplayName: "Build: macOS arm64"
agentOs: macOs
Expand Down Expand Up @@ -260,6 +263,7 @@ stages:
# Build MacOS x64
- template: jobs/default-build.yml
parameters:
condition: false # TEMPORARY: Disabled for testing Helix dedup
jobName: MacOs_x64_build
jobDisplayName: "Build: macOS x64"
agentOs: macOs
Expand Down Expand Up @@ -290,6 +294,7 @@ stages:
# Build Linux x64
- template: jobs/default-build.yml
parameters:
condition: false # TEMPORARY: Disabled for testing Helix dedup
jobName: Linux_x64_build
jobDisplayName: "Build: Linux x64"
agentOs: Linux
Expand Down Expand Up @@ -322,6 +327,7 @@ stages:
# Build Linux ARM
- template: jobs/default-build.yml
parameters:
condition: false # TEMPORARY: Disabled for testing Helix dedup
jobName: Linux_arm_build
jobDisplayName: "Build: Linux ARM"
agentOs: Linux
Expand Down Expand Up @@ -352,6 +358,7 @@ stages:
# Build Linux ARM64
- template: jobs/default-build.yml
parameters:
condition: false # TEMPORARY: Disabled for testing Helix dedup
jobName: Linux_arm64_build
jobDisplayName: "Build: Linux ARM64"
agentOs: Linux
Expand Down Expand Up @@ -383,6 +390,7 @@ stages:
# Build Linux Musl x64
- template: jobs/default-build.yml
parameters:
condition: false # TEMPORARY: Disabled for testing Helix dedup
jobName: Linux_musl_x64_build
jobDisplayName: "Build: Linux Musl x64"
agentOs: Linux
Expand Down Expand Up @@ -416,6 +424,7 @@ stages:
# Build Linux Musl ARM
- template: jobs/default-build.yml
parameters:
condition: false # TEMPORARY: Disabled for testing Helix dedup
jobName: Linux_musl_arm_build
jobDisplayName: "Build: Linux Musl ARM"
agentOs: Linux
Expand Down Expand Up @@ -449,6 +458,7 @@ stages:
# Build Linux Musl ARM64
- template: jobs/default-build.yml
parameters:
condition: false # TEMPORARY: Disabled for testing Helix dedup
jobName: Linux_musl_arm64_build
jobDisplayName: "Build: Linux Musl ARM64"
agentOs: Linux
Expand Down Expand Up @@ -483,6 +493,7 @@ stages:
# Test jobs
- template: jobs/default-build.yml
parameters:
condition: false # TEMPORARY: Disabled for testing Helix dedup
jobName: Windows_Test
jobDisplayName: "Test: Windows Server x64"
agentOs: Windows
Expand Down Expand Up @@ -511,6 +522,7 @@ stages:

- template: jobs/default-build.yml
parameters:
condition: false # TEMPORARY: Disabled for testing Helix dedup
jobName: MacOS_Test
jobDisplayName: "Test: macOS"
agentOs: macOS
Expand All @@ -532,6 +544,7 @@ stages:

- template: jobs/default-build.yml
parameters:
condition: false # TEMPORARY: Disabled for testing Helix dedup
jobName: Linux_Test
jobDisplayName: "Test: Ubuntu x64"
agentOs: Linux
Expand All @@ -553,21 +566,57 @@ stages:
publishOnError: true
includeForks: true

# Helix x64 build - shared by both Helix test subsets
- template: jobs/default-build.yml
parameters:
jobName: Helix_x64_Build
jobDisplayName: 'Build: Helix x64'
agentOs: Windows
timeoutInMinutes: 120
steps:
# Build the shared framework and test projects (but don't run tests)
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -pack -test -arch x64
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log $(_InternalRuntimeDownloadArgs)
/p:VsTestUseMSBuildOutput=false /p:Test=false
displayName: Build shared fx and test projects
- task: PublishPipelineArtifact@1
displayName: Publish Helix build artifacts
inputs:
targetPath: $(Build.SourcesDirectory)/artifacts
artifactName: Helix_Build_Artifacts
- task: PublishPipelineArtifact@1
displayName: Publish NuGet packages cache
inputs:
targetPath: $(Build.SourcesDirectory)/.packages
artifactName: Helix_NuGet_Packages
artifacts:
- name: Helix_Build_Logs_Attempt_$(System.JobAttempt)
path: artifacts/log/
publishOnError: true
includeForks: true

# Helix x64 subset 1
- template: jobs/default-build.yml
parameters:
jobName: Helix_x64_Subset_1
jobDisplayName: 'Tests: Helix x64 Subset 1'
agentOs: Windows
dependsOn: Helix_x64_Build
timeoutInMinutes: 240
steps:
# Build the shared framework
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -pack -arch x64
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log $(_InternalRuntimeDownloadArgs)
/p:VsTestUseMSBuildOutput=false
displayName: Build shared fx
# -noBuildRepoTasks -noBuildNative -noBuild to avoid repeating work done in the previous step.
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -all -noBuildRepoTasks -noBuildNative -noBuild -test
# Download build artifacts from Helix_x64_Build job
- task: DownloadPipelineArtifact@2
displayName: Download Helix build artifacts
inputs:
artifact: Helix_Build_Artifacts
path: $(Build.SourcesDirectory)/artifacts
- task: DownloadPipelineArtifact@2
displayName: Download NuGet packages cache
inputs:
artifact: Helix_NuGet_Packages
path: $(Build.SourcesDirectory)/.packages
# -noBuildRepoTasks -noBuildNative -noBuild to reuse builds from the build job.
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -restore -all -noBuildRepoTasks -noBuildNative -noBuild -test
-projects eng\helix\helix.proj /p:IsHelixPRCheck=true /p:IsHelixJob=true
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log $(_InternalRuntimeDownloadArgs)
/p:VsTestUseMSBuildOutput=false /p:RunTemplateTests=false /p:HelixSubset=1
Expand All @@ -588,15 +637,22 @@ stages:
jobName: Helix_x64_Subset_2
jobDisplayName: 'Tests: Helix x64 Subset 2'
agentOs: Windows
dependsOn: Helix_x64_Build
timeoutInMinutes: 240
steps:
# Build the shared framework
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -pack -arch x64
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log $(_InternalRuntimeDownloadArgs)
/p:VsTestUseMSBuildOutput=false
displayName: Build shared fx
# -noBuildRepoTasks -noBuildNative -noBuild to avoid repeating work done in the previous step.
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -all -noBuildRepoTasks -noBuildNative -noBuild -test
# Download build artifacts from Helix_x64_Build job
- task: DownloadPipelineArtifact@2
displayName: Download Helix build artifacts
inputs:
artifact: Helix_Build_Artifacts
path: $(Build.SourcesDirectory)/artifacts
- task: DownloadPipelineArtifact@2
displayName: Download NuGet packages cache
inputs:
artifact: Helix_NuGet_Packages
path: $(Build.SourcesDirectory)/.packages
# -noBuildRepoTasks -noBuildNative -noBuild to reuse builds from the build job.
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -restore -all -noBuildRepoTasks -noBuildNative -noBuild -test
-projects eng\helix\helix.proj /p:IsHelixPRCheck=true /p:IsHelixJob=true
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log $(_InternalRuntimeDownloadArgs)
/p:VsTestUseMSBuildOutput=false /p:RunTemplateTests=false /p:HelixSubset=2
Expand All @@ -614,6 +670,7 @@ stages:
# Local development validation
- template: jobs/default-build.yml
parameters:
condition: false # TEMPORARY: Disabled for testing Helix dedup
jobName: Local_Windows
jobDisplayName: 'Test: Windows local development validation'
agentOs: Windows
Expand Down Expand Up @@ -649,12 +706,13 @@ stages:
publishOnError: true
includeForks: true

# Source build
- template: /eng/common/templates/job/source-build.yml
parameters:
platform:
name: 'Managed'
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10.0-build-amd64'
# Source build - TEMPORARY: Disabled for testing Helix dedup
- ${{ if false }}:
- template: /eng/common/templates/job/source-build.yml
parameters:
platform:
name: 'Managed'
container: 'mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10.0-build-amd64'
buildScript: './eng/build.sh'
buildArguments: '--source-build $(_InternalRuntimeDownloadArgs)'
jobProperties:
Expand Down
Loading