Skip to content

feat: Migrate JS-sided locks to DatabaseQueue for transactions and executeBatch commands #153

feat: Migrate JS-sided locks to DatabaseQueue for transactions and executeBatch commands

feat: Migrate JS-sided locks to DatabaseQueue for transactions and executeBatch commands #153

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-15
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Install npm dependencies (bun)
run: bun install
- name: Restore ccache
uses: hendrikmuhs/[email protected]
- name: Setup Ruby (bundle)
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.3.0
bundler-cache: true
working-directory: example
- name: Restore Pods cache
uses: actions/cache@v4
with:
path: example/ios/Pods
key: pods-${{ runner.os }}-${{ hashFiles('**/Podfile.lock', '**/Gemfile.lock') }}
restore-keys: |
pods-${{ runner.os }}
- name: Install Pods
working-directory: example/ios
run: pod install
- 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 16' \
build \
CODE_SIGNING_ALLOWED=NO"