Skip to content

chore: upgrade example app to React Native 0.85.0-rc.0 (#264) #208

chore: upgrade example app to React Native 0.85.0-rc.0 (#264)

chore: upgrade example app to React Native 0.85.0-rc.0 (#264) #208

Workflow file for this run

name: Build iOS
on:
push:
branches:
- main
paths:
- ".github/workflows/build-ios.yml"
- "example/ios/**"
- "**/nitrogen/generated/shared/**"
- "**/nitrogen/generated/ios/**"
- "package/cpp/**"
- "package/ios/**"
- "**/Podfile.lock"
- "**/*.podspec"
- "**/react-native.config.js"
- "**/nitro.json"
pull_request:
paths:
- ".github/workflows/build-ios.yml"
- "example/ios/**"
- "**/nitrogen/generated/shared/**"
- "**/nitrogen/generated/ios/**"
- "package/cpp/**"
- "package/ios/**"
- "**/Podfile.lock"
- "**/*.podspec"
- "**/react-native.config.js"
- "**/nitro.json"
env:
USE_CCACHE: 1
jobs:
build:
name: Build iOS Example App
runs-on: macOS-26
strategy:
matrix:
include:
- name: static_frameworks
use_frameworks: static
- name: no_frameworks
use_frameworks: "" # intentionally unset
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- name: Set USE_FRAMEWORKS
if: matrix.use_frameworks != ''
run: echo "USE_FRAMEWORKS=${{ matrix.use_frameworks }}" >> $GITHUB_ENV
- name: Install npm dependencies (bun)
run: bun install
- name: Install Ccache
uses: hendrikmuhs/[email protected]
with:
max-size: 1.5G
key: ${{ runner.os }}-${{ matrix.use_frameworks }}-ccache-example-ios
create-symlink: true
- name: Setup ccache behavior
run: |
echo "CCACHE_SLOPPINESS=clang_index_store,file_stat_matches,include_file_ctime,include_file_mtime,ivfsoverlay,pch_defines,modules,system_headers,time_macros" >> $GITHUB_ENV
echo "CCACHE_FILECLONE=true" >> $GITHUB_ENV
echo "CCACHE_DEPEND=true" >> $GITHUB_ENV
echo "CCACHE_INODECACHE=true" >> $GITHUB_ENV
- name: Setup Ruby (bundle)
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.0
bundler-cache: true
working-directory: example
- name: Select Xcode 26.2
run: sudo xcode-select -s "/Applications/Xcode_26.2.app/Contents/Developer"
- name: Restore Pods cache
uses: actions/cache@v5
with:
path: example/ios/Pods
key: ${{ runner.os }}-${{ matrix.use_frameworks }}-pods-${{ hashFiles('**/Podfile.lock', '**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.use_frameworks }}-pods-
- name: Install Pods
working-directory: example
run: bun pods
- name: Restore DerivedData cache
uses: actions/cache@v5
with:
path: example/ios/build
key: ${{ runner.os }}-${{ matrix.use_frameworks }}-dd-${{ hashFiles('**/Podfile.lock', '**/Gemfile.lock', '**/package.json', '**/bun.lock') }}-xcode26.2
restore-keys: |
${{ runner.os }}-${{ matrix.use_frameworks }}-dd-
- name: Build App
working-directory: example/ios
run: |
set -o pipefail
xcodebuild \
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ \
-derivedDataPath build -UseModernBuildSystem=YES \
-workspace NitroSQLiteExample.xcworkspace \
-scheme NitroSQLiteExample \
-sdk iphonesimulator \
-configuration Debug \
-destination 'platform=iOS Simulator,name=iPhone 17 Pro' \
-showBuildTimingSummary \
ONLY_ACTIVE_ARCH=YES \
build \
CODE_SIGNING_ALLOWED=NO | xcbeautify --renderer github-actions