-
Notifications
You must be signed in to change notification settings - Fork 4
61 lines (61 loc) · 1.87 KB
/
build_example_project.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
name: Build Example Project
on:
workflow_dispatch: {}
pull_request:
types: [opened, synchronize]
permissions: read-all
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
XCODE_PROJECT_PATH: Examples/Example.xcodeproj
SWIFTUI_XCODE_SCHEME: SwiftUIExample
UIKIT_XCODE_SCHEME: UIKitExample
jobs:
build_swiftui:
name: Build SwiftUI Example Project
runs-on: macos-15
strategy:
matrix:
include:
- xcode: 16.1
destination: iPhone 16 Pro
os: 18.1
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
set -o pipefail &&\
xcodebuild build\
-project ${{ env.XCODE_PROJECT_PATH }}\
-scheme ${{ env.SWIFTUI_XCODE_SCHEME }}\
-sdk iphonesimulator\
-destination "platform=iOS Simulator,name=${{ matrix.destination }},OS=${{ matrix.os }}"\
| xcbeautify --renderer github-actions
build_uikit:
name: Build UIKit Example Project
runs-on: macos-15
continue-on-error: true
strategy:
matrix:
include:
- xcode: 16.1
destination: iPhone 16 Pro
os: 18.1
env:
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
set -o pipefail &&\
xcodebuild build\
-project ${{ env.XCODE_PROJECT_PATH }}\
-scheme ${{ env.UIKIT_XCODE_SCHEME }}\
-sdk iphonesimulator\
-destination "platform=iOS Simulator,name=${{ matrix.destination }},OS=${{ matrix.os }}"\
| xcbeautify --renderer github-actions