Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Minor refactors of CI #18913

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
18 changes: 2 additions & 16 deletions build/ci/.azure-devops-stages-docs.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,9 @@

stages:
- stage: Setup
- stage: setup
displayName: Setup
jobs:
- template: .azure-devops-commitsar.yml
parameters:
vmImage: '$(linuxVMImage)'

- template: .azure-devops-spell-check.yml
parameters:
vmImage: '$(linuxVMImage)'

- template: .azure-devops-markdown-lint.yml
parameters:
vmImage: '$(linuxVMImage)'

- template: .azure-devops-pipeline-validations.yml
parameters:
vmImage: '$(linuxVMImage)'
- template: .azure-devops-setup.yml

- stage: docs_generation
displayName: Docs Generation
Expand Down
80 changes: 33 additions & 47 deletions build/ci/.azure-devops-stages.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,14 @@

stages:
- stage: Setup
- stage: setup
displayName: Setup
jobs:
- template: .azure-devops-commitsar.yml
parameters:
vmImage: '$(linuxVMImage)'

- template: .azure-devops-spell-check.yml
parameters:
vmImage: '$(linuxVMImage)'

- template: .azure-devops-markdown-lint.yml
parameters:
vmImage: '$(linuxVMImage)'

- template: .azure-devops-pipeline-validations.yml
parameters:
vmImage: '$(linuxVMImage)'
- template: setup/.azure-devops-setup.yml

- stage: convert_tree
displayName: UWP Tree Conversion
dependsOn:
- Setup
- setup
jobs:
- template: .azure-devops-uwp-convert.yml
parameters:
Expand All @@ -31,29 +17,29 @@ stages:
- stage: binaries_build_uwp
displayName: Build Binaries UWP
dependsOn:
- Setup
- setup
- convert_tree

jobs:
- template: .azure-devops-package-netcoremobile.yml
- template: build/.azure-devops-package-netcoremobile.yml
parameters:
poolName: '$(windowsScaledPool)'
UNO_UWP_BUILD: true
XAML_FLAVOR_BUILD: UWP

- template: .azure-devops-package-wasm.yml
- template: build/.azure-devops-package-wasm.yml
parameters:
poolName: '$(linuxScaledPool)'
UNO_UWP_BUILD: true
XAML_FLAVOR_BUILD: UWP

- template: .azure-devops-package-reference.yml
- template: build/.azure-devops-package-reference.yml
parameters:
poolName: '$(linuxScaledPool)'
UNO_UWP_BUILD: true
XAML_FLAVOR_BUILD: UWP

- template: .azure-devops-package-skia.yml
- template: build/.azure-devops-package-skia.yml
parameters:
poolName: '$(linuxScaledPool)'
macOSImageName: '$(macOSVMImage)'
Expand All @@ -63,28 +49,28 @@ stages:
- stage: binaries_build_winui
displayName: Build Binaries WinUI
dependsOn:
- Setup
- setup

jobs:
- template: .azure-devops-package-netcoremobile.yml
- template: build/.azure-devops-package-netcoremobile.yml
parameters:
poolName: '$(windowsScaledPool)'
UNO_UWP_BUILD: false
XAML_FLAVOR_BUILD: WinUI

- template: .azure-devops-package-wasm.yml
- template: build/.azure-devops-package-wasm.yml
parameters:
poolName: '$(linuxScaledPool)'
UNO_UWP_BUILD: false
XAML_FLAVOR_BUILD: WinUI

- template: .azure-devops-package-reference.yml
- template: build/.azure-devops-package-reference.yml
parameters:
poolName: '$(linuxScaledPool)'
UNO_UWP_BUILD: false
XAML_FLAVOR_BUILD: WinUI

- template: .azure-devops-package-skia.yml
- template: build/.azure-devops-package-skia.yml
parameters:
poolName: '$(linuxScaledPool)'
macOSImageName: '$(macOSVMImage)'
Expand All @@ -98,7 +84,7 @@ stages:
- binaries_build_winui

jobs:
- template: .azure-devops-package.yml
- template: build/.azure-devops-package.yml
parameters:
poolName: '$(windowsScaledPool)'

Expand All @@ -108,7 +94,7 @@ stages:
- packages_build

jobs:
- template: .azure-devops-project-template-tests.yml
- template: tests/.azure-devops-project-template-tests.yml
parameters:
poolName: '$(windowsScaledPool)'
vmImageWindows: $(windows2022HostedVMImage)
Expand All @@ -125,7 +111,7 @@ stages:

jobs:

- template: .azure-devops-unit-tests.yml
- template: tests/.azure-devops-unit-tests.yml
parameters:
poolName: '$(windowsScaledPool)'

Expand All @@ -136,18 +122,18 @@ stages:

jobs:

- template: .azure-devops-wasm-uitests.yml
- template: tests/.azure-devops-wasm-tests.yml
parameters:
poolName: '$(linuxScaledPool)'

- stage: skia_tests_uwp
displayName: Tests - Skia UWP
dependsOn:
- Setup
- setup
- convert_tree

jobs:
- template: .azure-devops-skia-tests.yml
- template: tests/.azure-devops-skia-tests.yml
parameters:
vmImage: '$(windows2022HostedVMImage)'
vmMacImage: '$(macOSVMImage)'
Expand All @@ -159,10 +145,10 @@ stages:
- stage: skia_tests_winui
displayName: Tests - Skia WinUI
dependsOn:
- Setup
- setup

jobs:
- template: .azure-devops-skia-tests.yml
- template: tests/.azure-devops-skia-tests.yml
parameters:
vmImage: '$(windows2022HostedVMImage)'
vmMacImage: '$(macOSVMImage)'
Expand All @@ -174,21 +160,21 @@ stages:
- stage: macos_tests
displayName: Tests - macOS
dependsOn:
- Setup
- setup

jobs:
- template: .azure-devops-macos.yml
- template: tests/.azure-devops-macos.yml
parameters:
vmImage: '$(macOSVMImage)'
xCodeRoot: '$(xCodeRoot)'

- stage: android_tests
displayName: Tests - Android
dependsOn:
- Setup
- setup

jobs:
- template: .azure-devops-android-tests.yml
- template: tests/.azure-devops-android-tests.yml
parameters:
vmWindowsImage: '$(windows2019HostedVMImage)'
vmLinuxImage: '$(linuxVMImage)'
Expand All @@ -199,10 +185,10 @@ stages:
- stage: ios_tests
displayName: Tests - iOS
dependsOn:
- Setup
- setup

jobs:
- template: .azure-devops-ios-tests.yml
- template: tests/.azure-devops-ios-tests.yml
parameters:
vmImage: '$(macOSVMImage)'
vmImageTest: '$(macOSVMImage_UITests)'
Expand All @@ -212,10 +198,10 @@ stages:
- stage: wasdk_tests
displayName: Tests - WinAppSDK
dependsOn:
- Setup
- setup

jobs:
- template: .azure-devops-wasdk.yml
- template: tests/.azure-devops-wasdk.yml
parameters:
poolName: '$(windowsScaledPool)'

Expand All @@ -230,7 +216,7 @@ stages:
- skia_tests_winui

jobs:
- template: .azure-devops-screenshot-compare.yml
- template: tests/.azure-devops-screenshot-compare.yml
parameters:
poolName: '$(windowsScaledPool)'

Expand All @@ -242,7 +228,7 @@ stages:
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), not(eq(variables['build.reason'], 'PullRequest')))
dependsOn: packages_build
jobs:
- template: .azure-devops-publish-nuget-dev.yml
- template: publishing/.azure-devops-publish-nuget-dev.yml
parameters:
vmImage: '$(windows2022HostedVMImage)'

Expand All @@ -251,7 +237,7 @@ stages:
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), not(eq(variables['build.reason'], 'PullRequest')))
dependsOn: packages_build
jobs:
- template: .azure-devops-publish-nuget-prod-dev.yml
- template: publishing/.azure-devops-publish-nuget-prod-dev.yml
parameters:
vmImage: '$(windows2022HostedVMImage)'

Expand All @@ -260,6 +246,6 @@ stages:
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'), not(eq(variables['build.reason'], 'PullRequest')))
dependsOn: Publish_Prod_Dev
jobs:
- template: .azure-devops-publish-nuget-prod.yml
- template: publishing/.azure-devops-publish-nuget-prod.yml
parameters:
vmImage: '$(windows2022HostedVMImage)'
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
UNO_UWP_BUILD: ${{ parameters.UNO_UWP_BUILD }}
XAML_FLAVOR_BUILD: ${{ parameters.XAML_FLAVOR_BUILD }}

ArchiveName: windows-netcoremobile-bin
ArtifactName: NugetPackages-Artifacts-netcoremobile

steps:
- checkout: self
clean: true
Expand Down Expand Up @@ -82,19 +85,4 @@ jobs:
createLogFile: false
displayName: Building WinAppSDK Graphics3DGL package binaries

- template: templates/copy-package-assets.yml

- task: ArchiveFiles@2
inputs:
rootFolderOrFile: $(build.sourcesdirectory)\build-artifacts\bin-$(XAML_FLAVOR_BUILD)
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/windows-netcoremobile-bin-$(XAML_FLAVOR_BUILD).zip'

- task: PublishBuildArtifacts@1
condition: always()
retryCountOnTaskFailure: 3
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: NugetPackages-Artifacts-netcoremobile-$(XAML_FLAVOR_BUILD)
ArtifactType: Container
- template: templates/copy-and-publish-package-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
UNO_UWP_BUILD: ${{ parameters.UNO_UWP_BUILD }}
XAML_FLAVOR_BUILD: ${{ parameters.XAML_FLAVOR_BUILD }}

ArchiveName: Reference-bin
ArtifactName: NugetPackages-Artifacts-reference

steps:
- checkout: self
clean: true
Expand All @@ -43,19 +46,4 @@ jobs:
dotnet build build/Uno.UI.Build.csproj /m /t:BuildCIReference "/p:CombinedConfiguration=$(CombinedConfiguration)" /detailedsummary /bl:$(build.artifactstagingdirectory)/build-Reference-$(XAML_FLAVOR_BUILD).binlog
displayName: Building Reference Binaries

- template: templates/copy-package-assets.yml

- task: ArchiveFiles@2
inputs:
rootFolderOrFile: $(build.sourcesdirectory)/build-artifacts/bin-$(XAML_FLAVOR_BUILD)
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/Reference-bin-$(XAML_FLAVOR_BUILD).zip'

- task: PublishBuildArtifacts@1
condition: always()
retryCountOnTaskFailure: 3
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: NugetPackages-Artifacts-reference-$(XAML_FLAVOR_BUILD)
ArtifactType: Container
- template: templates/copy-and-publish-package-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
UNO_UWP_BUILD: ${{ parameters.UNO_UWP_BUILD }}
XAML_FLAVOR_BUILD: ${{ parameters.XAML_FLAVOR_BUILD }}

ArchiveName: skia-bin
ArtifactName: NugetPackages-Artifacts-skia

steps:
- checkout: self
clean: true
Expand Down Expand Up @@ -62,7 +65,7 @@ jobs:
dotnet build build/Uno.UI.Build.csproj /m /t:BuildCISkia "/p:CombinedConfiguration=$(CombinedConfiguration)" /detailedsummary /bl:$(build.artifactstagingdirectory)/build-skia-$(XAML_FLAVOR_BUILD).binlog
displayName: Building Skia Binaries

- template: templates/copy-package-assets.yml
- template: templates/copy-and-publish-package-assets.yml

- task: ArchiveFiles@2
inputs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
UNO_UWP_BUILD: ${{ parameters.UNO_UWP_BUILD }}
XAML_FLAVOR_BUILD: ${{ parameters.XAML_FLAVOR_BUILD }}

ArchiveName: wasm-bin
ArtifactName: NugetPackages-Artifacts-wasm

steps:
- checkout: self
clean: true
Expand All @@ -44,19 +47,4 @@ jobs:
dotnet build build/Uno.UI.Build.csproj /m /t:BuildCIWasm "/p:CombinedConfiguration=$(CombinedConfiguration)" /detailedsummary /bl:$(build.artifactstagingdirectory)/build-wasm-$(XAML_FLAVOR_BUILD).binlog
displayName: Building Wasm Binaries

- template: templates/copy-package-assets.yml

- task: ArchiveFiles@2
inputs:
rootFolderOrFile: $(build.sourcesdirectory)/build-artifacts/bin-$(XAML_FLAVOR_BUILD)
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/wasm-bin-$(XAML_FLAVOR_BUILD).zip'

- task: PublishBuildArtifacts@1
condition: always()
retryCountOnTaskFailure: 3
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: NugetPackages-Artifacts-wasm-$(XAML_FLAVOR_BUILD)
ArtifactType: Container
- template: templates/copy-and-publish-package-assets.yml
Loading
Loading