This repository has been archived by the owner on Dec 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 139
/
azure-pipelines.yml
134 lines (128 loc) · 4.02 KB
/
azure-pipelines.yml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# Xcode
# Build, test, and archive an Xcode workspace on macOS.
# Add steps that install certificates, test, sign, and distribute an app, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/xcode
trigger:
- master
jobs:
# Builds
- job: macOS
pool:
vmImage: 'macOS-11'
steps:
- task: Xcode@5
inputs:
actions: 'build'
scheme: 'SlackKit'
sdk: 'macosx'
configuration: 'Release'
xcWorkspacePath: 'SlackKit.xcodeproj/project.xcworkspace'
xcodeVersion: specifyPath
xcodeDeveloperDir: '/Applications/Xcode_13.0.app/Contents/Developer'
- task: Xcode@5
inputs:
actions: 'test'
scheme: 'SlackKitTests'
sdk: 'macosx'
configuration: 'Debug'
xcWorkspacePath: 'SlackKit.xcodeproj/project.xcworkspace'
xcodeVersion: specifyPath
xcodeDeveloperDir: '/Applications/Xcode_13.0.app/Contents/Developer'
- job: iOS
pool:
vmImage: 'macOS-11'
steps:
- task: Xcode@5
inputs:
actions: 'build'
scheme: 'SlackKit'
sdk: 'iphoneos'
configuration: 'Release'
xcWorkspacePath: 'SlackKit.xcodeproj/project.xcworkspace'
xcodeVersion: specifyPath
xcodeDeveloperDir: '/Applications/Xcode_13.0.app/Contents/Developer'
- task: Xcode@5
inputs:
actions: 'test'
scheme: 'SlackKitTests'
sdk: 'iphonesimulator'
configuration: 'Debug'
xcWorkspacePath: 'SlackKit.xcodeproj/project.xcworkspace'
xcodeVersion: specifyPath
xcodeDeveloperDir: '/Applications/Xcode_13.0.app/Contents/Developer'
destinationPlatformOption: 'custom'
destinationPlatform: 'iOS'
destinationTypeOption: 'simulators'
destinationSimulators: 'iPhone 13 Pro,OS=15.0'
- job: tvOS
pool:
vmImage: 'macOS-11'
steps:
- task: Xcode@5
inputs:
actions: 'build'
scheme: 'SlackKit'
sdk: 'appletvos'
configuration: 'Release'
xcWorkspacePath: 'SlackKit.xcodeproj/project.xcworkspace'
xcodeVersion: specifyPath
xcodeDeveloperDir: '/Applications/Xcode_13.0.app/Contents/Developer'
- task: Xcode@5
inputs:
actions: 'test'
scheme: 'SlackKitTests'
sdk: 'appletvsimulator'
configuration: 'Debug'
xcWorkspacePath: 'SlackKit.xcodeproj/project.xcworkspace'
xcodeVersion: specifyPath
xcodeDeveloperDir: '/Applications/Xcode_13.0.app/Contents/Developer'
destinationPlatformOption: 'custom'
destinationPlatform: 'tvOS'
destinationTypeOption: 'simulators'
destinationSimulators: 'Apple TV 4K,OS=15.0'
- job: Linux
pool:
vmImage: 'ubuntu-18.04'
steps:
- script: |
# Install Swift dependencies
sudo apt-get install clang libicu-dev
# Install Swift 5.5.2
curl https://download.swift.org/swift-5.5.2-release/ubuntu1804/swift-5.5.2-RELEASE/swift-5.5.2-RELEASE-ubuntu18.04.tar.gz > $(Build.SourcesDirectory)/swift-5.5.2-RELEASE-ubuntu18.04.tar.gz
tar xzf swift-5.5.2-RELEASE-ubuntu18.04.tar.gz -C $(Build.SourcesDirectory)
# Swift build
$(Build.SourcesDirectory)/swift-5.5.2-RELEASE-ubuntu18.04/usr/bin/swift build
# Swift test
$(Build.SourcesDirectory)/swift-5.5.2-RELEASE-ubuntu18.04/usr/bin/swift test
# Examples
- job: 'Swift_Package_Manager'
pool:
vmImage: 'macOS-11'
steps:
- script: |
brew update
brew install pkg-config
brew install libressl
swift build --package-path Examples/Leaderboard/
- job: 'Carthage'
pool:
vmImage: 'macOS-11'
steps:
- script: carthage bootstrap --use-xcframeworks --platform macos
workingDirectory: 'Examples/Leaderboard'
- job: 'CocoaPods'
pool:
vmImage: 'macOS-11'
steps:
- task: CocoaPods@0
inputs:
projectDirectory: 'Examples/Leaderboard'
- task: Xcode@5
inputs:
actions: 'build'
scheme: 'Leaderboard'
sdk: 'macosx'
configuration: 'Release'
xcWorkspacePath: 'Examples/Leaderboard/Leaderboard.xcworkspace'
xcodeVersion: specifyPath
xcodeDeveloperDir: '/Applications/Xcode_13.0.app/Contents/Developer'