Uno.Themes/azure-pipelines.yml

128 строки
3.1 KiB
YAML
Исходник Обычный вид История

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
IsLightBuild: $[eq(variables['Build.Reason'], 'PullRequest')]
2021-03-03 23:32:56 +03:00
IsCanaryBranch: $[startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries/')]
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
DisableNet6MobileTargets: true
2020-09-25 02:16:48 +03:00
Android:
ApplicationPlatform: Android
ArtifactName: Android
DisableNet6MobileTargets: true
2020-09-25 02:16:48 +03:00
Packages:
ApplicationPlatform: Packages
ArtifactName: Packages
GeneratePackageOnBuild: true
2021-04-26 23:34:22 +03:00
Packages_WinUI:
ApplicationPlatform: Packages
ArtifactName: Packages
UseWinUI: true
GeneratePackageOnBuild: true
2021-04-26 23:34:22 +03:00
2020-09-25 02:16:48 +03:00
pool:
vmImage: windows-2022
2020-05-20 01:09:16 +03:00
2020-09-25 02:16:48 +03:00
steps:
- template: build/stage-build.yml
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
DisableNet6MobileTargets: true
2020-09-25 02:16:48 +03:00
macOS:
ApplicationPlatform: macOS
ArtifactName: macOS
DisableNet6MobileTargets: true
2020-09-25 02:16:48 +03:00
pool:
vmImage: macOS-10.15
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'
2020-07-30 22:55:57 +03:00
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:
vmImage: 'ubuntu-18.04'
2020-09-25 02:16:48 +03:00
container: unoplatform/wasm-build:2.2
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:
- template: build/stage-build-wasm.yml