chore(deps): bump actions/cache from 4 to 5 #54
Workflow file for this run
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 | |
| permissions: | |
| contents: read | |
| 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' | |
| - '**/yarn.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' | |
| - '**/yarn.lock' | |
| - '**/*.podspec' | |
| - '**/react-native.config.js' | |
| - '**/nitro.json' | |
| workflow_dispatch: | |
| env: | |
| USE_CCACHE: 1 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build iOS Example App (New Architecture) | |
| runs-on: macOS-15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: 'yarn' | |
| - name: Setup Xcode | |
| uses: maxim-lobanov/setup-xcode@v1 | |
| with: | |
| xcode-version: 16.4 | |
| - name: Install dependencies (yarn) | |
| run: yarn install --frozen-lockfile | |
| - name: Install example dependencies (yarn) | |
| run: cd example && yarn install --frozen-lockfile | |
| - name: Generate Nitro modules (codegen) | |
| run: yarn codegen | |
| - name: Setup Ruby (bundle) | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.2' | |
| bundler-cache: true | |
| working-directory: example/ios | |
| - name: Install xcpretty | |
| run: gem install xcpretty | |
| - name: Cache CocoaPods | |
| uses: actions/cache@v5 | |
| with: | |
| path: | | |
| ~/.cocoapods/repos | |
| example/ios/Pods | |
| key: ${{ runner.os }}-pods-${{ hashFiles('example/ios/Podfile.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 SensitiveInfoExample.xcworkspace \ | |
| -scheme SensitiveInfoExample \ | |
| -sdk iphonesimulator \ | |
| -configuration Debug \ | |
| -destination 'platform=iOS Simulator,name=iPhone 16' \ | |
| build \ | |
| CODE_SIGNING_ALLOWED=NO | xcpretty |