-
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (42 loc) · 1.26 KB
/
build-ios.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
name: Build iOS
on:
push:
branches:
- master
paths:
- '.github/workflows/build-ios.yml'
- 'ios/**'
- '*.podspec'
- 'example/ios/**'
pull_request:
paths:
- '.github/workflows/build-ios.yml'
- 'ios/**'
- '*.podspec'
- 'example/ios/**'
jobs:
build:
name: Build iOS example app
runs-on: macOS-15
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
- name: Install pods
run: yarn example pods
- name: Install xcpretty
run: gem install xcpretty
- name: Set .xcode.env.local
run: echo "export NODE_BINARY=$(printf '%q' "$(node -e 'console.log(process.execPath)')")" > ./example/ios/.xcode.env.local
- name: Build app
run: "set -o pipefail && xcodebuild \
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
-derivedDataPath build -UseModernBuildSystem=YES \
-workspace VoiceKitExample.xcworkspace \
-scheme VoiceKitExample \
-sdk iphonesimulator \
-configuration Debug \
-destination 'platform=iOS Simulator,name=iPhone 16 Pro' \
build \
CODE_SIGNING_ALLOWED=NO | xcpretty"
working-directory: example/ios