-
Notifications
You must be signed in to change notification settings - Fork 6
57 lines (55 loc) · 2.26 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
46
47
48
49
50
51
52
53
54
55
56
57
name: MobilliumBuilders CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
Tests:
runs-on: ${{ matrix.runsOn }}
strategy:
matrix:
include:
- destination: 'platform=iOS Simulator,name=iPhone 11,OS=13.7'
name: 'iOS 13.7 Simulator'
runsOn: 'macOS-11'
os: '13.7'
xc_version: '12.5.1'
xc_simulator_version: '11.7'
- destination: 'platform=iOS Simulator,name=iPhone 12,OS=14.5'
name: 'iOS 14.5 Simulator'
runsOn: 'macOS-11'
os: '14.5'
xc_version: '12.5.1'
xc_simulator_version: '12.5.1'
- destination: 'platform=iOS Simulator,name=iPhone 13,OS=15.5'
name: 'iOS 15.5 Simulator'
runsOn: 'macOS-12'
os: '15.5'
xc_version: '14.2'
xc_simulator_version: '13.4.1'
- destination: 'platform=iOS Simulator,name=iPhone 14,OS=16.2'
name: 'iOS 16.2 Simulator'
runsOn: 'macOS-12'
os: '16.2'
xc_version: '14.2'
xc_simulator_version: '14.2'
env:
XC_WORKSPACE: ${{ 'Example/MobilliumBuilders.xcworkspace' }}
XC_SCHEME: ${{ 'MobilliumBuilders-Example' }}
steps:
- uses: actions/checkout@v3
- name: Select latest Xcode
run: "sudo xcode-select -s /Applications/Xcode_${{ matrix.xc_version }}.app"
- name: Install Dependencies
run: |
cd Example
pod install --repo-update
- name: Link to iOS ${{ matrix.os }} Simulators
run: |
echo "Creating Runtimes folder if needed..."
sudo mkdir -p /Library/Developer/CoreSimulator/Profiles/Runtimes
echo "Creating symlink of the iOS ${{ matrix.os }} runtime..."
sudo ln -s /Applications/Xcode_${{ matrix.xc_simulator_version }}.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ ${{ matrix.os }}.simruntime
- name: Run Unit and UI Tests
run: /usr/bin/xcodebuild test -workspace "$XC_WORKSPACE" -scheme "$XC_SCHEME" -destination '${{ matrix.destination }}'