Skip to content

chore(ci): fix CI

chore(ci): fix CI #67

Workflow file for this run

name: Build iOS
on:
push:
branches:
- main
paths:
- ".github/workflows/build-ios.yml"
- "package/cpp/**"
- "package/ios/**"
- "package/*.podspec"
- "examples/**/ios/**"
pull_request:
paths:
- ".github/workflows/build-ios.yml"
- "package/cpp/**"
- "package/ios/**"
- "package/*.podspec"
- "examples/**/ios/**"
jobs:
build:
name: Build iOS Example App
runs-on: macOS-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Restore bun cache
uses: actions/cache@v4
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
restore-keys: |
${{ runner.os }}-bun-
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Restore buildcache
uses: mikehardy/buildcache-action@v2
continue-on-error: true
- name: Setup Ruby (bundle)
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4.4
bundler-cache: true
working-directory: examples/AppExampleFabric
- name: Restore Pods cache
uses: actions/cache@v4
with:
path: examples/AppExampleFabric/ios/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-pods-
- name: Install Pods
working-directory: examples/AppExampleFabric/ios
run: bundle exec pod install
- name: Install xcpretty
run: gem install xcpretty
- name: Build App
working-directory: examples/AppExampleFabric/ios
run: "set -o pipefail && xcodebuild \
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO \
-derivedDataPath build -UseModernBuildSystem=YES \
-workspace AppExampleFabric.xcworkspace \
-scheme AppExampleFabric \
-sdk iphonesimulator \
-configuration Debug \
-destination 'platform=iOS Simulator,name=iPhone 16 Pro Max' \
build \
CODE_SIGNING_ALLOWED=NO | xcpretty"