chore: formatted swift #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
- 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 |