File tree Expand file tree Collapse file tree 2 files changed +23
-7
lines changed Expand file tree Collapse file tree 2 files changed +23
-7
lines changed Original file line number Diff line number Diff line change 1
- name : iOS starter workflow
1
+ name : iOS
2
2
3
3
on :
4
4
push :
7
7
branches : [ main ]
8
8
9
9
jobs :
10
- build :
11
- name : Build and Test on iOS
12
- runs-on : macos-latest
10
+ build-and-test-iOS :
11
+ name : Build and Test on iOS ${{ matrix.iOS-version }}
12
+ runs-on : macos-11
13
+ strategy :
14
+ fail-fast : false
15
+ matrix :
16
+ include :
17
+ - xcode-version : " 13.2.1"
18
+ iOS-version : " 15.2"
19
+ device-name : " iPhone 13"
20
+ - xcode-version : " 12.5.1"
21
+ iOS-version : " 14.5"
22
+ device-name : " iPhone 12"
23
+ - xcode-version : " 11.7"
24
+ iOS-version : " 13.7"
25
+ device-name : " iPhone 11"
13
26
14
27
steps :
28
+ - uses : maxim-lobanov/setup-xcode@v1
29
+ with :
30
+ xcode-version : ${{ matrix.xcode-version }}
15
31
- name : Checkout
16
32
uses : actions/checkout@v2
17
33
- name : Build
18
34
run : |
19
- xcodebuild build-for-testing -scheme "swift-bson" -destination "platform= iOS Simulator ,name=iPhone 13 "
35
+ xcodebuild build-for-testing -scheme "swift-bson" -destination "OS=${{ matrix. iOS-version }} ,name=${{ matrix.device-name }} "
20
36
- name : Test
21
37
run : |
22
- xcodebuild test-without-building -scheme "swift-bson" -destination "platform= iOS Simulator ,name=iPhone 13 "
38
+ xcodebuild test-without-building -scheme "swift-bson" -destination "OS=${{ matrix. iOS-version }} ,name=${{ matrix.device-name }} "
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ let package = Package(
5
5
name: " swift-bson " ,
6
6
platforms: [
7
7
. macOS( . v10_14) ,
8
- . iOS( . v11 )
8
+ . iOS( . v13 )
9
9
] ,
10
10
products: [
11
11
. library( name: " SwiftBSON " , targets: [ " SwiftBSON " ] )
You can’t perform that action at this time.
0 commit comments