Skip to content

Commit 14fed34

Browse files
Use Xcode 9.4.1 for build
1 parent 94524b4 commit 14fed34

File tree

1 file changed

+40
-53
lines changed

1 file changed

+40
-53
lines changed

devops/azure-devops.yml

Lines changed: 40 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -8,74 +8,61 @@ steps:
88

99
# Azure DevOps hosted pool is still using an old version of Xamarin.iOS,
1010
# so we will use the previous major version of Xcode
11-
1211
- task: CmdLine@2
1312
inputs:
1413
script: 'sudo rm -rf /Applications/Xcode.app/;
1514
sudo /bin/mv /Applications/Xcode_9.4.1.app/ /Applications/Xcode.app/'
1615

16+
# Print the current version of Xamarin.iOS
1717
- task: CmdLine@2
1818
inputs:
19-
script: '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -version'
20-
21-
- task: CmdLine@2
22-
inputs:
23-
script: '/usr/bin/xcode-select -p'
24-
25-
# - task: CmdLine@2
26-
# inputs:
27-
# script: 'sudo /usr/bin/xcode-select -s /Applications/Xcode_9.4.1.app/Contents/Developer'
28-
29-
# # Print the current version of Xamarin.iOS
30-
# - task: CmdLine@2
31-
# inputs:
32-
# script: '/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch --version'
19+
script: '/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch --version'
3320

34-
# - task: NuGetCommand@2
35-
# displayName: 'NuGet restore'
21+
- task: NuGetCommand@2
22+
displayName: 'NuGet restore'
3623

37-
# - script: 'brew update'
38-
# displayName: 'Brew Update'
24+
- script: 'brew update'
25+
displayName: 'Brew Update'
3926

40-
# - script: 'brew install gitversion --ignore-dependencies'
41-
# displayName: 'Install GitVersion'
27+
- script: 'brew install gitversion --ignore-dependencies'
28+
displayName: 'Install GitVersion'
4229

43-
# - task: PowerShell@2
44-
# displayName: 'PreBuild Script'
45-
# inputs:
46-
# targetType: filePath
47-
# filePath: ./devops/PreBuild.ps1
48-
# arguments: 'Codefoco.CYRTextView CYRTextView.nuspec'
30+
- task: PowerShell@2
31+
displayName: 'PreBuild Script'
32+
inputs:
33+
targetType: filePath
34+
filePath: ./devops/PreBuild.ps1
35+
arguments: 'Codefoco.CYRTextView CYRTextView.nuspec'
4936

50-
# - task: MSBuild@1
51-
# displayName: 'Build solution CYRTextView.sln'
52-
# inputs:
53-
# solution: CYRTextView.sln
54-
# configuration: Release
37+
- task: MSBuild@1
38+
displayName: 'Build solution CYRTextView.sln'
39+
inputs:
40+
solution: CYRTextView.sln
41+
configuration: Release
5542

56-
# - script: 'nuget setapikey $(apikey)'
57-
# displayName: 'Set NuGet API Key'
43+
- script: 'nuget setapikey $(apikey)'
44+
displayName: 'Set NuGet API Key'
5845

59-
# - task: PowerShell@2
60-
# displayName: 'Package NuGet'
61-
# inputs:
62-
# targetType: filePath
63-
# filePath: ./devops/Package.ps1
64-
# arguments: 'Codefoco.CYRTextView CYRTextView.nuspec'
46+
- task: PowerShell@2
47+
displayName: 'Package NuGet'
48+
inputs:
49+
targetType: filePath
50+
filePath: ./devops/Package.ps1
51+
arguments: 'Codefoco.CYRTextView CYRTextView.nuspec'
6552

66-
# - script: 'mv *.nupkg Codefoco.CYRTextview.nupkg'
67-
# displayName: 'Rename NuGet package'
53+
- script: 'mv *.nupkg Codefoco.CYRTextview.nupkg'
54+
displayName: 'Rename NuGet package'
6855

69-
# - task: PublishBuildArtifacts@1
70-
# displayName: 'Publish Codefoco.CYRTextview.nupkg Artifact'
71-
# inputs:
72-
# PathtoPublish: Codefoco.CYRTextview.nupkg
73-
# ArtifactName: Codefoco.CYRTextview.nupkg
56+
- task: PublishBuildArtifacts@1
57+
displayName: 'Publish Codefoco.CYRTextview.nupkg Artifact'
58+
inputs:
59+
PathtoPublish: Codefoco.CYRTextview.nupkg
60+
ArtifactName: Codefoco.CYRTextview.nupkg
7461

75-
# - task: PowerShell@2
76-
# displayName: 'Publish NuGet'
77-
# inputs:
78-
# targetType: filePath
79-
# filePath: ./devops/Publish.ps1
80-
# arguments: Codefoco.CYRTextView
62+
- task: PowerShell@2
63+
displayName: 'Publish NuGet'
64+
inputs:
65+
targetType: filePath
66+
filePath: ./devops/Publish.ps1
67+
arguments: Codefoco.CYRTextView
8168

0 commit comments

Comments
 (0)