-
-
Notifications
You must be signed in to change notification settings - Fork 18
46 lines (43 loc) · 1.62 KB
/
ci.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
name: Swift
on:
push:
branches: [ 3.0.0-beta.* ]
pull_request:
branches: [ 3.0.0-beta.* ]
jobs:
build-ios:
name: Test on iOS 15
env:
DEVELOPER_DIR: /Applications/Xcode_13.2.app/Contents/Developer
runs-on: macOS-11
strategy:
matrix:
destination: ['OS=15.2,name=iPhone 13 Pro']
steps:
- uses: actions/checkout@v2
- name: Build
run: xcodebuild test -destination '${{ matrix.destination }}' -scheme 'SwiftExtensions-Package'
- name: Run tests
run: xcodebuild test -destination '${{ matrix.destination }}' -scheme 'SwiftExtensions-Package'
build-ios12:
name: Test on iOS 12
env:
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer
runs-on: macOS-10.15
strategy:
matrix:
destination: ['OS=12.4,name=iPhone X']
steps:
- uses: actions/checkout@v2
- name: Link to 12.4 Simulators
run: |
sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes
ls /Applications/Xcode*
sudo ln -s /Applications/Xcode_10.3.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ 12.4.simruntime
ls /Library/Developer/CoreSimulator/Profiles/Runtimes
xcrun simctl list devicetypes runtimes
xcrun simctl list devices 12.4
- name: Build
run: xcodebuild test -destination '${{ matrix.destination }}' -scheme 'SwiftExtensions-Package'
- name: Run tests
run: xcodebuild test -destination '${{ matrix.destination }}' -scheme 'SwiftExtensions-Package'