Skip to content

Commit 488bceb

Browse files
authored
SWIFT-1500, SWIFT-1501: Set minimum iOS version and expand iOS testing (#80)
1 parent 1eb4e83 commit 488bceb

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

.github/workflows/ios.yml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: iOS starter workflow
1+
name: iOS
22

33
on:
44
push:
@@ -7,16 +7,32 @@ on:
77
branches: [ main ]
88

99
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"
1326

1427
steps:
28+
- uses: maxim-lobanov/setup-xcode@v1
29+
with:
30+
xcode-version: ${{ matrix.xcode-version }}
1531
- name: Checkout
1632
uses: actions/checkout@v2
1733
- name: Build
1834
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 }}"
2036
- name: Test
2137
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 }}"

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let package = Package(
55
name: "swift-bson",
66
platforms: [
77
.macOS(.v10_14),
8-
.iOS(.v11)
8+
.iOS(.v13)
99
],
1010
products: [
1111
.library(name: "SwiftBSON", targets: ["SwiftBSON"])

0 commit comments

Comments
 (0)