Merge pull request #53 from phantom/dan/feplat-5048-fix-fork-ci #111
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: iOS | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| extraEnv: [FOO=BAR, RCT_NEW_ARCH_ENABLED=1] | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'yarn' | |
| - name: Install npm dependencies | |
| run: yarn --frozen-lockfile | |
| - name: Install Pods | |
| run: ${{matrix.extraEnv}} pod install | |
| working-directory: example/ios | |
| # The job builds and never boots the app, so it takes the generic | |
| # simulator destination. Naming one device tied this job to whichever | |
| # simulators the runner image happened to ship, and it broke when | |
| # `iPhone 16` left the image. | |
| - name: Build iOS test app | |
| run: | | |
| xcodebuild -workspace WebviewExample.xcworkspace -scheme ReactTestApp -destination 'generic/platform=iOS Simulator' CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO build | |
| working-directory: example/ios | |
| timeout-minutes: 60 |