-
Notifications
You must be signed in to change notification settings - Fork 917
92 lines (70 loc) · 2.34 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
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
validate_spec:
runs-on: macos-latest
steps:
- name: Checkout Project
uses: actions/checkout@v1
- name: Validate podspec
run: pod lib lint
build_xcode14:
runs-on: macos-12
strategy:
matrix:
run-config:
- { xcode_version: '14.1', simulator: 'name=iPad Pro (12.9-inch) (5th generation),OS=16.1' }
- { xcode_version: '14.1', simulator: 'name=iPhone SE (2nd generation),OS=16.1' }
steps:
- name: Checkout Project
uses: actions/checkout@v1
- name: Brew Update
run: brew update
- name: Install Bundler
run: gem install bundler
- name: Install Core Utils
run: if [ -z "$(brew ls --versions coreutils)" ] ; then brew install coreutils ; fi
- name: Install XCPretty
run: gem install xcpretty --no-document --quiet
- name: Show Xcode versions
run: ls -al /Applications/Xcode*
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.run-config['xcode_version'] }}.app
- name: Current Xcode Selected
run: xcode-select -p
- name: List Simulators
run: xcrun simctl list
- name: Build & Test
run: ./scripts/ci.sh "${{ matrix.run-config['simulator'] }}"
build:
runs-on: macos-11
strategy:
matrix:
run-config:
- { xcode_version: '13.0', simulator: 'name=iPhone SE (2nd generation),OS=15.0' }
- { xcode_version: '13.0', simulator: 'name=iPad Pro (12.9-inch) (5th generation),OS=15.0' }
steps:
- name: Checkout Project
uses: actions/checkout@v1
- name: Brew Update
run: brew update
- name: Install Bundler
run: gem install bundler
- name: Install Core Utils
run: if [ -z "$(brew ls --versions coreutils)" ] ; then brew install coreutils ; fi
- name: Install XCPretty
run: gem install xcpretty --no-document --quiet
- name: Show Xcode versions
run: ls -al /Applications/Xcode*
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.run-config['xcode_version'] }}.app
- name: Current Xcode Selected
run: xcode-select -p
- name: List Simulators
run: xcrun simctl list
- name: Build & Test
run: ./scripts/ci.sh "${{ matrix.run-config['simulator'] }}"