2022-05-20 04:44:12 +03:00
|
|
|
trigger:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
- stable
|
|
|
|
- release/stable/*
|
|
|
|
|
|
|
|
paths:
|
|
|
|
include:
|
|
|
|
- '/'
|
|
|
|
exclude:
|
|
|
|
- .github/
|
|
|
|
# don't trigger the CI if only docs files are changed
|
|
|
|
- doc/*
|
|
|
|
- '**/*.md'
|
|
|
|
|
|
|
|
pr:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- master
|
|
|
|
- stable
|
|
|
|
- release/stable/*
|
|
|
|
|
|
|
|
paths:
|
|
|
|
include:
|
|
|
|
- '/'
|
|
|
|
exclude:
|
|
|
|
- .github/
|
|
|
|
# don't trigger the CI if only docs files are changed
|
|
|
|
- doc/*
|
|
|
|
- '**/*.md'
|
|
|
|
|
|
|
|
variables:
|
2020-05-20 01:09:16 +03:00
|
|
|
# Path where packages (nuget or app packages) will be copied to.
|
|
|
|
PackageOutputPath: $(Build.ArtifactStagingDirectory)
|
|
|
|
|
|
|
|
# For Application.Building.Light optimizations
|
2020-07-13 19:30:52 +03:00
|
|
|
IsLightBuild: $[eq(variables['Build.Reason'], 'PullRequest')]
|
|
|
|
|
2021-03-03 23:32:56 +03:00
|
|
|
IsCanaryBranch: $[startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries/')]
|
2020-07-13 19:30:52 +03:00
|
|
|
IsReleaseBranch: $[or(eq(variables['Build.SourceBranch'], 'refs/heads/master'), startsWith(variables['Build.SourceBranch'], 'refs/heads/feature/'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/'))]
|
2020-05-20 01:09:16 +03:00
|
|
|
|
2021-01-20 17:56:16 +03:00
|
|
|
ANDROID_NDK_HOME: C:\Microsoft\AndroidNDK64\android-ndk-r16b
|
|
|
|
ANDROID_NDK_PATH: C:\Microsoft\AndroidNDK64\android-ndk-r16b
|
|
|
|
AndroidNdkDirectory: C:\Microsoft\AndroidNDK64\android-ndk-r16b
|
|
|
|
|
2020-09-25 02:16:48 +03:00
|
|
|
jobs:
|
|
|
|
- job: Windows # Build UWP/Android/NuGet
|
2021-08-26 22:53:04 +03:00
|
|
|
timeoutInMinutes: 90
|
2020-09-25 02:16:48 +03:00
|
|
|
strategy:
|
2021-04-26 23:34:22 +03:00
|
|
|
maxParallel: 4
|
2020-09-25 02:16:48 +03:00
|
|
|
matrix:
|
|
|
|
UWP:
|
|
|
|
ApplicationPlatform: UWP_x64
|
|
|
|
ArtifactName: UWP
|
2022-03-30 21:07:37 +03:00
|
|
|
DisableNet6MobileTargets: true
|
2020-09-25 02:16:48 +03:00
|
|
|
Android:
|
|
|
|
ApplicationPlatform: Android
|
|
|
|
ArtifactName: Android
|
2022-03-30 21:07:37 +03:00
|
|
|
DisableNet6MobileTargets: true
|
2020-09-25 02:16:48 +03:00
|
|
|
Packages:
|
|
|
|
ApplicationPlatform: Packages
|
|
|
|
ArtifactName: Packages
|
2022-03-30 21:07:37 +03:00
|
|
|
GeneratePackageOnBuild: true
|
2021-04-26 23:34:22 +03:00
|
|
|
Packages_WinUI:
|
|
|
|
ApplicationPlatform: Packages
|
|
|
|
ArtifactName: Packages
|
|
|
|
UseWinUI: true
|
2022-03-30 21:07:37 +03:00
|
|
|
GeneratePackageOnBuild: true
|
2021-04-26 23:34:22 +03:00
|
|
|
|
2020-09-25 02:16:48 +03:00
|
|
|
pool:
|
2022-03-30 21:07:37 +03:00
|
|
|
vmImage: windows-2022
|
2020-05-20 01:09:16 +03:00
|
|
|
|
2020-09-25 02:16:48 +03:00
|
|
|
steps:
|
2022-08-26 23:54:55 +03:00
|
|
|
- template: build/gitversion.yml
|
|
|
|
- template: build/dotnet-install-windows.yml
|
|
|
|
|
|
|
|
# This SDK version is needed as long as `uap10.0` will be supported in Uno.Core
|
|
|
|
- powershell: ./build/Install-WindowsSdkISO.ps1 18362
|
|
|
|
displayName: Install Windows SDK 18362
|
|
|
|
|
2020-05-14 08:03:41 +03:00
|
|
|
- template: build/stage-build.yml
|
2020-05-10 08:30:49 +03:00
|
|
|
|
2020-09-25 02:16:48 +03:00
|
|
|
- job: MacOS # Build iOS/macOS
|
2021-08-26 22:53:04 +03:00
|
|
|
timeoutInMinutes: 90
|
2020-09-25 02:16:48 +03:00
|
|
|
strategy:
|
|
|
|
maxParallel: 2
|
|
|
|
matrix:
|
|
|
|
iOS:
|
|
|
|
ApplicationPlatform: iPhone
|
|
|
|
ArtifactName: iOS
|
2022-03-30 21:07:37 +03:00
|
|
|
DisableNet6MobileTargets: true
|
2020-09-25 02:16:48 +03:00
|
|
|
macOS:
|
|
|
|
ApplicationPlatform: macOS
|
|
|
|
ArtifactName: macOS
|
2022-03-30 21:07:37 +03:00
|
|
|
DisableNet6MobileTargets: true
|
2020-09-25 02:16:48 +03:00
|
|
|
pool:
|
2022-09-09 18:55:31 +03:00
|
|
|
vmImage: macOS-11
|
2020-09-25 02:16:48 +03:00
|
|
|
|
|
|
|
variables:
|
|
|
|
- name: SkipUnknownFrameworks
|
|
|
|
value: true # Used by TargetFrameworks.Filtering package
|
2022-04-16 04:19:07 +03:00
|
|
|
- group: unoplatform.apple.ios.appstore.distribution
|
2020-09-25 02:16:48 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: InstallAppleCertificate@2
|
2022-04-16 04:19:07 +03:00
|
|
|
displayName: Install Certificate
|
2020-09-25 02:16:48 +03:00
|
|
|
inputs:
|
2022-04-16 04:19:07 +03:00
|
|
|
certSecureFile: UnoPlatform-Apple-Distribution.p12
|
|
|
|
certPwd: $(appleappstorecertificatepassword)
|
|
|
|
keychain: temp
|
2020-09-25 02:16:48 +03:00
|
|
|
deleteCert: true
|
2022-04-16 04:19:07 +03:00
|
|
|
|
2020-09-25 02:16:48 +03:00
|
|
|
- task: InstallAppleProvisioningProfile@1
|
|
|
|
displayName: 'Install Apple Provisioning Profile'
|
|
|
|
inputs:
|
|
|
|
provisioningProfileLocation: 'secureFiles'
|
2022-04-16 04:19:07 +03:00
|
|
|
provProfileSecureFile: 'Uno_Themes.mobileprovision'
|
2022-08-26 23:54:55 +03:00
|
|
|
|
|
|
|
- template: build/gitversion.yml
|
|
|
|
- template: build/dotnet-install-macos.yml
|
2020-09-25 02:16:48 +03:00
|
|
|
- template: build/stage-build.yml
|
2020-07-30 22:55:57 +03:00
|
|
|
|
2020-09-25 02:16:48 +03:00
|
|
|
- job: Linux
|
2020-05-20 01:09:16 +03:00
|
|
|
|
2020-09-25 02:16:48 +03:00
|
|
|
pool:
|
2022-09-09 15:42:04 +03:00
|
|
|
vmImage: 'ubuntu-latest'
|
2020-04-30 18:34:37 +03:00
|
|
|
|
2022-09-09 15:42:04 +03:00
|
|
|
container: unoplatform/wasm-build:3.0
|
2020-07-30 22:55:57 +03:00
|
|
|
|
2020-09-25 02:16:48 +03:00
|
|
|
variables:
|
|
|
|
ArtifactName: WASM
|
|
|
|
SkipUnknownFrameworks: True
|
2020-07-30 22:55:57 +03:00
|
|
|
|
2020-09-25 02:16:48 +03:00
|
|
|
steps:
|
2022-08-26 23:54:55 +03:00
|
|
|
- template: build/gitversion.yml
|
|
|
|
- template: build/stage-build-wasm.yml
|