This commit is contained in:
Jerome Laban 2022-08-22 10:38:01 -04:00
Родитель 29f7d6e22e
Коммит 57274bcf55
11 изменённых файлов: 40 добавлений и 25 удалений

Просмотреть файл

@ -52,6 +52,8 @@ variables:
xCodeRoot_iOS_UITests: '/Applications/Xcode_13.2.1.app'
XamarinSDKVersion_iOS_UITests: 6_12_12
enable_package_cache: true
jobs:
- template: build/ci/.azure-devops-commitsar.yml
parameters:

Просмотреть файл

@ -7,7 +7,7 @@ parameters:
jobs:
- job: Android_Build_Net6_For_Tests
displayName: 'Android UI Tests (Net6 Build)'
displayName: 'Build net6 Android UI Tests'
pool:
vmImage: ${{ parameters.vmMacOSImage }}
@ -51,7 +51,7 @@ jobs:
ArtifactType: Container
- job: Android_Build_For_Tests
displayName: 'Android UI Tests (Build)'
displayName: 'Build Android UI Tests'
pool:
vmImage: ${{ parameters.vmMacOSImage }}
@ -97,7 +97,7 @@ jobs:
ArtifactType: Container
- job: Android_Tests
displayName: 'Android UI Tests (Run)'
displayName: 'Run Android UI Tests'
dependsOn:
- Android_Build_For_Tests
- Android_Build_Net6_For_Tests
@ -240,6 +240,7 @@ jobs:
clean: true
- task: DownloadBuildArtifacts@0
displayName: 'Download SamplesApp UnitTests'
inputs:
artifactName: $(SAMPLEAPP_ARTIFACT_NAME)
downloadPath: '$(build.sourcesdirectory)/build'

Просмотреть файл

@ -20,7 +20,7 @@ parameters:
jobs:
- job: iOS_Build
displayName: 'iOS Samples App UI Tests (Build)'
displayName: 'Build iOS Samples App UI Tests'
dependsOn: Pipeline_Validations

Просмотреть файл

@ -98,10 +98,6 @@ jobs:
- template: templates/dotnet-install.yml
- template: templates/optimize-roslyn-mono.yml
- template: templates/nuget-cache.yml
parameters:
nugetPackages: $(NUGET_PACKAGES)
- task: DownloadBuildArtifacts@0
inputs:
artifactName: uno-macos-artifacts
@ -155,10 +151,6 @@ jobs:
- template: templates/dotnet-install.yml
- template: templates/optimize-roslyn-mono.yml
- template: templates/nuget-cache.yml
parameters:
nugetPackages: $(NUGET_PACKAGES)
- task: DownloadBuildArtifacts@0
inputs:
artifactName: uno-macos-artifacts
@ -188,4 +180,4 @@ jobs:
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: uitests-results
ArtifactType: Container
ArtifactType: Container

Просмотреть файл

@ -3,7 +3,7 @@ parameters:
jobs:
- job: net6_win_build
displayName: 'Build .NET 6 Build (Windows)'
displayName: 'Build net6 Binaries'
timeoutInMinutes: 90
pool: ${{ parameters.poolName }}

Просмотреть файл

@ -3,7 +3,7 @@ parameters:
jobs:
- job: SamplesApp_UITests_Build
displayName: 'SamplesApp UI Tests (Build)'
displayName: 'Build SamplesApp UI Tests'
pool:
vmImage: ${{ parameters.vmImage }}
@ -23,6 +23,10 @@ jobs:
- checkout: self
clean: true
- template: templates/nuget-cache.yml
parameters:
nugetPackages: $(NUGET_PACKAGES)
- template: templates/dotnet-install.yml
- task: MSBuild@1

Просмотреть файл

@ -26,6 +26,10 @@ jobs:
- template: templates/gitversion.yml
- template: templates/dotnet-install.yml
- template: templates/nuget-cache.yml
parameters:
nugetPackages: $(NUGET_PACKAGES)
- powershell: dotnet msbuild src/SamplesApp/SamplesApp.Skia.Gtk/SamplesApp.Skia.Gtk.csproj /r /m /p:Configuration=Release /detailedsummary /m # /bl:$(build.artifactstagingdirectory)\build.binlog
displayName: Build GTK Head
@ -176,4 +180,4 @@ jobs:
testRunTitle: 'Skia WPF Runtime Tests'
testResultsFormat: 'NUnit'
testResultsFiles: '$(build.sourcesdirectory)/build/skia-wpf-runtime-tests-results.xml'
failTaskOnFailedTests: true
failTaskOnFailedTests: true

Просмотреть файл

@ -12,6 +12,9 @@ jobs:
CombinedConfiguration: Release|Any CPU
CI_Build: true
# This is required to be able to use hard links as much as possible
NUGET_PACKAGES: $(Agent.WorkFolder)\.nuget
dependsOn: Pipeline_Validations
steps:
@ -20,6 +23,10 @@ jobs:
- template: templates/gitversion.yml
- template: templates/nuget-cache.yml
parameters:
nugetPackages: $(NUGET_PACKAGES)
- task: MSBuild@1
displayName: Build 2022 VSIX
inputs:

Просмотреть файл

@ -20,6 +20,10 @@ jobs:
- template: templates/dotnet-install.yml
- template: templates/nuget-cache.yml
parameters:
nugetPackages: $(NUGET_PACKAGES)
# Disabled for the next round of C# updates for forward validations
# - bash: |
# msbuild /r /p:Configuration=Release /p:UnoTargetFrameworkOverride=netstandard2.0 /p:LangVersion=preview /p:UnoUIUseRoslynSourceGenerators=true /p:MicrosoftNetCompilerVersionOverride=3.8.0-3.final src/SamplesApp/SamplesApp.Wasm/SamplesApp.Wasm.csproj /bl:$(build.artifactstagingdirectory)/build-cs9-preview-$(GitVersion.FullSemVer).binlog

Просмотреть файл

@ -3,7 +3,7 @@ parameters:
jobs:
- job: Wasm_UITests_Build
displayName: 'WebAssembly UI Tests (Build)'
displayName: 'Build WebAssembly UI Tests'
container: nv-bionic-wasm
dependsOn: Pipeline_Validations
@ -21,12 +21,9 @@ jobs:
- template: templates/gitversion.yml
- template: templates/dotnet-install.yml
- task: CacheBeta@0
condition: eq(variables['enable_package_cache'], 'true')
inputs:
key: nuget | $(Agent.OS) | $(Agent.JobName) | $(build.sourcesdirectory)/**/*.csproj | $(build.sourcesdirectory)/**/Directory.Build.targets | $(build.sourcesdirectory)/**/Directory.Build.props
path: $(NUGET_PACKAGES)
displayName: Cache NuGet packages
- template: templates/nuget-cache.yml
parameters:
nugetPackages: $(NUGET_PACKAGES)
- template: templates/optimize-roslyn-mono.yml
- template: templates/dotnet-install.yml

Просмотреть файл

@ -3,15 +3,19 @@ parameters:
steps:
- powershell: |
md -p "${{ parameters.nugetPackages }}"
displayName: Create nuget packages cache folder
- script: |
md "${{ parameters.nugetPackages }}"
compact /c "/s:${{ parameters.nugetPackages }}"
condition: and(succeeded(), eq( variables['Agent.OS'], 'Windows_NT' ))
displayName: Compress nuget package cache folder
- task: Cache@2
condition: eq(variables['enable_package_cache'], 'true')
inputs:
key: nuget | $(Agent.OS) | $(Agent.JobName) | $(build.sourcesdirectory)/**/*.csproj | $(build.sourcesdirectory)/**/Directory.Build.targets | $(build.sourcesdirectory)/**/Directory.Build.props
path: ${{ parameters.nugetPackages }}
displayName: Cache NuGet packages
displayName: Restore NuGet packages cache