2020-09-25 02:16:48 +03:00
|
|
|
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
|
|
|
|
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
|
|
|
|
Android:
|
|
|
|
ApplicationPlatform: Android
|
|
|
|
ArtifactName: Android
|
|
|
|
Packages:
|
|
|
|
ApplicationPlatform: Packages
|
|
|
|
GeneratePackageOnBuild: true
|
|
|
|
ArtifactName: Packages
|
2021-04-26 23:34:22 +03:00
|
|
|
Packages_WinUI:
|
|
|
|
ApplicationPlatform: Packages
|
|
|
|
GeneratePackageOnBuild: true
|
|
|
|
ArtifactName: Packages
|
|
|
|
UseWinUI: true
|
|
|
|
|
2020-09-25 02:16:48 +03:00
|
|
|
pool:
|
|
|
|
vmImage: windows-2019
|
2020-05-20 01:09:16 +03:00
|
|
|
|
2020-09-25 02:16:48 +03:00
|
|
|
steps:
|
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
|
|
|
|
strategy:
|
|
|
|
maxParallel: 2
|
|
|
|
matrix:
|
|
|
|
iOS:
|
|
|
|
ApplicationPlatform: iPhone
|
|
|
|
ArtifactName: iOS
|
|
|
|
macOS:
|
|
|
|
ApplicationPlatform: macOS
|
|
|
|
ArtifactName: macOS
|
|
|
|
pool:
|
|
|
|
vmImage: macOS-10.15
|
|
|
|
|
|
|
|
variables:
|
|
|
|
- name: SkipUnknownFrameworks
|
|
|
|
value: true # Used by TargetFrameworks.Filtering package
|
|
|
|
- group: apple.appstore.distribution # Variables for certificate
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- task: InstallAppleCertificate@2
|
|
|
|
displayName: Install Apple Certificate
|
|
|
|
inputs:
|
|
|
|
certSecureFile: 'apple.appstore.distribution.p12' # Name of the p12 certificate
|
|
|
|
certPwd: '$(appleappstorecertificatepassword)'
|
|
|
|
keychain: 'temp'
|
|
|
|
deleteCert: true
|
|
|
|
|
|
|
|
- task: InstallAppleProvisioningProfile@1
|
|
|
|
displayName: 'Install Apple Provisioning Profile'
|
|
|
|
inputs:
|
|
|
|
provisioningProfileLocation: 'secureFiles'
|
|
|
|
provProfileSecureFile: 'UnoMaterial.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-04-30 18:34:37 +03:00
|
|
|
|
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
|