forked from Sweekriti91/BuildVMApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazdo_pipeline.yaml
70 lines (59 loc) · 1.98 KB
/
azdo_pipeline.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Xamarin.Android and Xamarin.iOS
# Build a Xamarin.Android and Xamarin.iOS app.
# Add steps that test, sign, and distribute the app, save build artifacts, and more:
# https://learn.microsoft.com/azure/devops/pipelines/ecosystems/xamarin
jobs:
- job: XamarinFormsBuild
pool:
vmImage: 'macos-13'
variables:
buildConfiguration: 'Debug'
outputDirectory: '$(build.binariesDirectory)/$(buildConfiguration)'
steps:
- task: Bash@3
displayName: Install Xamarin Components via custom Script
inputs:
targetType: 'inline'
script: |
chmod +x install_xam.sh
./install_xam.sh
# - task: Bash@3
# displayName: Install Xamarin Components via HomeBrew
# inputs:
# targetType: 'inline'
# script: |
# brew install --cask xamarin-ios
# brew install --cask xamarin-android
# - task: Bash@3
# displayName: Install Xamarin Components via boots
# inputs:
# targetType: 'inline'
# script: |
# dotnet tool install -g boots
# boots --stable Xamarin.Android
# boots --stable Xamarin.iOS
- task: CmdLine@2
displayName: Set Xcode Version
inputs:
script: '/bin/bash -c "echo ''##vso[task.setvariable variable=MD_APPLE_SDK_ROOT;]''/Applications/Xcode_15.2.app;sudo xcode-select --switch /Applications/Xcode_15.2.app/Contents/Developer"'
- task: NuGetCommand@2
displayName: Restore Nugets
inputs:
command: 'restore'
restoreSolution: 'BuildVMApp.sln'
feedsToUse: 'select'
- task: XamarinAndroid@1
displayName: Build Xamarin Android
inputs:
projectFile: 'BuildVMApp/BuildVMApp.Android/BuildVMApp.Android.csproj'
configuration: '$(buildConfiguration)'
msbuildVersionOption: 'latest'
jdkOption: 'JDKVersion'
- task: XamariniOS@2
displayName: Build Xamarin iOS
inputs:
solutionFile: 'BuildVMApp.sln'
configuration: 'Debug'
packageApp: false
buildForSimulator: true
runNugetRestore: false