forked from tsolomko/SWCompression
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
84 lines (83 loc) · 2.54 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
trigger:
branches:
exclude:
- master
tags:
include:
- '*'
stages:
- stage: test
displayName: 'Build & Test'
jobs:
- job: macos
strategy:
matrix:
macosSwift50:
imageName: 'macOS-10.14'
DEVELOPER_DIR: '/Applications/Xcode_10.3.app'
WATCHOS_ACTIONS: 'clean build'
WATCHOS_SIMULATOR: 'Apple Watch Series 4 - 44mm'
macosSwift51:
imageName: 'macOS-10.15'
DEVELOPER_DIR: '/Applications/Xcode_11.3.1.app'
WATCHOS_ACTIONS: 'clean build'
WATCHOS_SIMULATOR: 'Apple Watch Series 4 - 44mm'
macosSwift52:
imageName: 'macOS-10.15'
DEVELOPER_DIR: '/Applications/Xcode_11.4.1.app'
WATCHOS_ACTIONS: 'clean build'
WATCHOS_SIMULATOR: 'Apple Watch Series 4 - 44mm'
macosSwift53:
imageName: 'macOS-10.15'
DEVELOPER_DIR: '/Applications/Xcode_12.4.app'
WATCHOS_ACTIONS: 'clean build'
WATCHOS_SIMULATOR: 'Apple Watch Series 4 - 44mm'
UTILS_PW_XCF_FLAG: '--xcf'
# macosSwift54:
# imageName: 'macOS-11.3'
# DEVELOPER_DIR: '/Applications/Xcode_12.5.app'
# WATCHOS_ACTIONS: 'clean test'
# WATCHOS_SIMULATOR: 'Apple Watch Series 6 - 44mm'
# UTILS_PW_XCF_FLAG: '--xcf'
pool:
vmImage: $(imageName)
steps:
- script: |
set -e -o xtrace
brew update
./utils.py ci install-macos
displayName: 'Install'
- script: ./utils.py prepare-workspace macos $UTILS_PW_XCF_FLAG
displayName: 'Prepare Workspace'
- script: ./utils.py ci script-macos
displayName: 'Build & Test'
- script: swift build -c release
displayName: 'Build SPM Release'
- job: linux
strategy:
matrix:
linuxSwift50:
imageName: 'ubuntu-18.04'
SWIFT_VERSION: '5.0.3'
linuxSwift51:
imageName: 'ubuntu-18.04'
SWIFT_VERSION: '5.1.5'
linuxSwift52:
imageName: 'ubuntu-18.04'
SWIFT_VERSION: '5.2.5'
linuxSwift53:
imageName: 'ubuntu-18.04'
SWIFT_VERSION: '5.3.3'
linuxSwift54:
imageName: 'ubuntu-18.04'
SWIFT_VERSION: '5.4'
pool:
vmImage: $(imageName)
steps:
- script: ./utils.py ci install-linux
displayName: 'Install'
- script: ./utils.py ci script-linux
displayName: 'Build SPM Debug & Release'
# - stage: Deploy
# dependsOn: Test
# condition: startsWith(variables['Build.SourceBranch'], 'refs/tags') # Deploy on tags only