-
-
Notifications
You must be signed in to change notification settings - Fork 0
121 lines (115 loc) · 3.45 KB
/
build.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
name: Build
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
env:
LC_CTYPE: en_US.UTF-8
LANG: en_US.UTF-8
WORKSPACE: .swiftpm/xcode/package.xcworkspace
SCHEME: QuickConstraint
jobs:
build-latest:
strategy:
matrix:
destination:
- 'platform=iOS Simulator,name=iPhone 13,OS=latest'
- 'platform=iOS Simulator,name=iPad Pro (12.9-inch) (5th generation),OS=latest'
- 'platform=OS X,arch=x86_64'
runs-on: macos-12
env:
DEVELOPER_DIR: /Applications/Xcode_14.0.app
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Lint
run: swiftlint --strict
- name: Cache build
uses: actions/cache@v2
with:
path: |
.spm
key: ${{ runner.os }}-cache
- name: Build
run: |
set -o pipefail
xcodebuild build -workspace $WORKSPACE -scheme $SCHEME -destination "${{ matrix.destination }}" | xcpretty
build-iOS-15:
strategy:
matrix:
destination:
- 'platform=iOS Simulator,name=iPhone 13,OS=15.5'
- 'platform=iOS Simulator,name=iPad Pro (12.9-inch) (5th generation),OS=15.5'
- 'platform=tvOS Simulator,name=Apple TV,OS=15.4'
- 'platform=OS X,arch=x86_64'
runs-on: macos-12
env:
DEVELOPER_DIR: /Applications/Xcode_13.4.1.app
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Lint
run: swiftlint --strict
- name: Cache build
uses: actions/cache@v2
with:
path: |
.spm
key: ${{ runner.os }}-cache
- name: Build
run: |
set -o pipefail
xcodebuild build -workspace $WORKSPACE -scheme $SCHEME -destination "${{ matrix.destination }}" | xcpretty
build-iOS-14:
strategy:
matrix:
destination:
- 'platform=iOS Simulator,name=iPhone 12,OS=14.5'
- 'platform=iOS Simulator,name=iPad Pro (12.9-inch) (4th generation),OS=14.5'
- 'platform=tvOS Simulator,name=Apple TV,OS=14.5'
- 'platform=OS X,arch=x86_64'
runs-on: macos-11
env:
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Lint
run: swiftlint --strict
- name: Cache build
uses: actions/cache@v2
with:
path: |
.spm
key: ${{ runner.os }}-cache
- name: Build
run: |
set -o pipefail
xcodebuild build -workspace $WORKSPACE -scheme $SCHEME -destination "${{ matrix.destination }}" | xcpretty
build-iOS-13:
strategy:
matrix:
destination:
- 'platform=iOS Simulator,name=iPhone 11,OS=13.7'
- 'platform=iOS Simulator,name=iPad Pro (12.9-inch) (4th generation),OS=13.7'
- 'platform=tvOS Simulator,name=Apple TV,OS=13.4'
- 'platform=OS X,arch=x86_64'
runs-on: macos-11
env:
DEVELOPER_DIR: /Applications/Xcode_11.7.app
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Lint
run: swiftlint --strict
- name: Cache build
uses: actions/cache@v2
with:
path: |
.spm
key: ${{ runner.os }}-cache
- name: Build
run: |
set -o pipefail
xcodebuild build -workspace $WORKSPACE -scheme $SCHEME -destination "${{ matrix.destination }}" | xcpretty