build(deps): update xcodeproj requirement from < 1.26.0 to < 1.28.0 in /example #4
This file contains hidden or 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: | |
| - main | |
| paths: | |
| - '.github/workflows/ios-build.yml' | |
| - 'example/ios/**' | |
| - 'example/Gemfile' | |
| - 'example/Gemfile.lock' | |
| - '**/nitrogen/generated/shared/**' | |
| - '**/nitrogen/generated/ios/**' | |
| - 'cpp/**' | |
| - 'ios/**' | |
| - '**/Podfile.lock' | |
| - '**/bun.lock' | |
| - '**/*.podspec' | |
| - '**/react-native.config.js' | |
| - '**/nitro.json' | |
| pull_request: | |
| paths: | |
| - '.github/workflows/ios-build.yml' | |
| - 'example/ios/**' | |
| - 'example/Gemfile' | |
| - 'example/Gemfile.lock' | |
| - '**/nitrogen/generated/shared/**' | |
| - '**/nitrogen/generated/ios/**' | |
| - 'cpp/**' | |
| - 'ios/**' | |
| - '**/Podfile.lock' | |
| - '**/bun.lock' | |
| - '**/*.podspec' | |
| - '**/react-native.config.js' | |
| - '**/nitro.json' | |
| env: | |
| USE_CCACHE: 1 | |
| jobs: | |
| build_new: | |
| name: Build iOS Example App (new architecture) | |
| runs-on: macOS-15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Install npm dependencies (bun) | |
| run: bun install | |
| - name: Setup Ruby (bundle) | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 2.7.2 | |
| bundler-cache: true | |
| working-directory: example/ios | |
| - name: Install xcpretty | |
| run: gem install xcpretty | |
| - name: Restore Pods cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: example/ios/Pods | |
| key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock', '**/Gemfile.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pods- | |
| - 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 NitroKeyEventExample.xcworkspace \ | |
| -scheme NitroKeyEventExample \ | |
| -sdk iphonesimulator \ | |
| -configuration Debug \ | |
| -destination 'platform=iOS Simulator,name=iPhone 16' \ | |
| build \ | |
| CODE_SIGNING_ALLOWED=NO | xcpretty" | |
| build_old: | |
| name: Build iOS Example App (old architecture) | |
| runs-on: macOS-15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: oven-sh/setup-bun@v2 | |
| - name: Install npm dependencies (bun) | |
| run: bun install | |
| - name: Disable new architecture in Podfile | |
| run: sed -i "" "s/ENV\['RCT_NEW_ARCH_ENABLED'\] = '1'/ENV['RCT_NEW_ARCH_ENABLED'] = '0'/g" example/ios/Podfile | |
| - name: Restore buildcache | |
| uses: mikehardy/buildcache-action@v2 | |
| continue-on-error: true | |
| - name: Setup Ruby (bundle) | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 2.7.2 | |
| bundler-cache: true | |
| working-directory: example/ios | |
| - name: Install xcpretty | |
| run: gem install xcpretty | |
| - name: Restore Pods cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: example/ios/Pods | |
| key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock', '**/Gemfile.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pods- | |
| - 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 NitroKeyEventExample.xcworkspace \ | |
| -scheme NitroKeyEventExample \ | |
| -sdk iphonesimulator \ | |
| -configuration Debug \ | |
| -destination 'platform=iOS Simulator,name=iPhone 16' \ | |
| build \ | |
| CODE_SIGNING_ALLOWED=NO | xcpretty" |