-
-
Notifications
You must be signed in to change notification settings - Fork 116
57 lines (45 loc) · 1.24 KB
/
ci.yml
File metadata and controls
57 lines (45 loc) · 1.24 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
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
env:
LC_CTYPE: en_US.UTF-8
LANG: en_US.UTF-8
jobs:
test:
name: Test on iOS
runs-on: macos-latest
strategy:
matrix:
destination:
- "OS=18.5,name=iPhone 16 Pro"
- "OS=18.5,name=iPhone 16"
- "OS=18.5,name=iPhone SE (3rd generation)"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '16.0'
- name: Install xcpretty
run: gem install xcpretty
- name: Show Xcode version
run: xcodebuild -version
- name: Show available simulators
run: xcrun simctl list devices available
- name: Build Swift Package for iOS
run: |
set -o pipefail
xcodebuild build \
-scheme FDTake \
-destination "${{ matrix.destination }}" | xcpretty
- name: Test iOS Example App
run: |
set -o pipefail
xcodebuild build \
-project "iOS Example/iOS Example.xcodeproj" \
-scheme "iOS Example" \
-destination "${{ matrix.destination }}" | xcpretty