-
Notifications
You must be signed in to change notification settings - Fork 130
46 lines (34 loc) · 1.19 KB
/
build.yml
File metadata and controls
46 lines (34 loc) · 1.19 KB
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: CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: macos-latest
strategy:
matrix:
run-config:
- { xcode_version: '12.4', simulator: 'name=iPhone SE (2nd generation),OS=14.4' }
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
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "ExpandableLabelDemoSPM/ExpandableLabelDemoSPM.xcodeproj" -scheme "ExpandableLabelDemoSPM" -destination "${{ matrix.run-config['simulator'] }}" clean build | xcpretty