Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 295
Add fabric on iOS#400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Add fabric on iOS #400
Changes from all commits
1ed440251ca37eb86cf6c4f8671d00d9a791c40598c7a4e238dfb7958946e515e6f348c93b1191ae3f1d3ab00138195867e647c95bc90c77e8b2a6cc5c2b80d258a90dc0988a8574ae662e5e469a35cb8ad2f640e6531fc190454a22aa190e2d87ec9bfb6eb4193daf9af90611ae1cda629d526File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -60,7 +60,7 @@ jobs: | ||
| verify: | ||
| name: Verify the Example app sources | ||
| name: Verify example app sources | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| @@ -75,7 +75,7 @@ jobs: | ||
| build-android-app: | ||
| name: Verify the package and example app builds for Android platform | ||
| name: Build example app Android | ||
| runs-on: ubuntu-latest | ||
| needs: [verify] | ||
| @@ -95,7 +95,7 @@ jobs: | ||
| build-iOS-app: | ||
| name: Verify the package and example app builds for iOS platform | ||
| name: Build example app iOS | ||
| runs-on: macos-latest | ||
| needs: [verify] | ||
| steps: | ||
| @@ -105,33 +105,101 @@ jobs: | ||
| id: cache-npm | ||
| uses: actions/cache@v3 | ||
| env: | ||
| cache-name: cached-ios-deps | ||
| cache-name: cached-ios-npm-deps | ||
| with: | ||
| path: | | ||
| example/node_modules | ||
| example/ios/Pods | ||
| key: ${{ hashFiles('./example/package-lock.json') }}-${{ hashFiles('./package/package-lock.json') }}-${{ hashFiles('./example/ios/Podfile.lock') }} | ||
| path: example/node_modules | ||
| key: ${{ hashFiles('./example/package-lock.json') }}-${{ hashFiles('./package/package-lock.json') }} | ||
| - name: Install required dependencies on cache miss | ||
| - name: Install required dependencies on cache miss (npm) | ||
| if: steps.cache-npm.outputs.cache-hit != 'true' | ||
| run: | | ||
| npm install | ||
| cd example/ios && pod install --verbose | ||
| - name: Cache Pods | ||
| id: cache-pods | ||
| uses: actions/cache@v3 | ||
| env: | ||
| cache-name: cached-ios-pods-deps | ||
| with: | ||
| path: example/ios/Pods | ||
| key: ${{ hashFiles('./example/ios/Podfile.lock') }} | ||
| - name: Install required dependencies on cache miss (Pods) | ||
| if: steps.cache-pods.outputs.cache-hit != 'true' | ||
| run: | | ||
| cd example/ios && pod install | ||
| - name: Reinstall Pods only if using cached ones | ||
| if: steps.cache-pods.outputs.cache-hit == 'true' | ||
| run: cd example/ios && pod install | ||
| - name: Use the current package sources in build | ||
| run: cd example && npm run refresh-package | ||
| - name: Opening Simulator app | ||
| uses: futureware-tech/simulator-action@v1 | ||
| - name: Build iOS | ||
| run: | | ||
| device_name='iPhone 13' | ||
| device=$(xcrun simctl list devices "${device_name}" available | grep "${device_name} (") | ||
BartoszKlonowski marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| re='\(([-0-9A-Fa-f]+)\)' | ||
| [[ $device =~ $re ]] || exit 1 | ||
| xcodebuild -workspace example.xcworkspace -scheme example -destination "platform=iOS Simulator,id=${BASH_REMATCH[1]}" CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO build | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just wondering: Don't we have ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It defaults to YES, and it gives us major speed improvements. Check this out: | ||
| working-directory: example/ios | ||
| build-iOS-new-arch-app: | ||
| name: Build example app iOS (Fabric) | ||
| runs-on: macos-latest | ||
| needs: [build-iOS-app] | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| - name: Cache node modules | ||
| id: cache-npm | ||
| uses: actions/cache@v3 | ||
| env: | ||
| cache-name: cached-ios-npm-deps | ||
| with: | ||
| path: example/node_modules | ||
| key: new-arch-${{ hashFiles('./example/package-lock.json') }}-${{ hashFiles('./package/package-lock.json') }} | ||
| - name: Install required dependencies on cache miss (npm) | ||
| if: steps.cache-npm.outputs.cache-hit != 'true' | ||
| run: | | ||
| npm install | ||
| - name: Cache Pods | ||
| id: cache-pods | ||
| uses: actions/cache@v3 | ||
| env: | ||
| cache-name: cached-ios-pods-deps | ||
| with: | ||
| model: 'iPhone 12 mini' | ||
| path: example/ios/Pods | ||
| key: new-arch-${{ hashFiles('./example/ios/Podfile.lock') }} | ||
| - name: Install required dependencies on cache miss (Pods) | ||
| if: steps.cache-pods.outputs.cache-hit != 'true' | ||
| run: | | ||
| cd example/ios && RCT_NEW_ARCH_ENABLED=1 pod install | ||
| - name: Reinstall Pods only if using cached ones | ||
| if: steps.cache-pods.outputs.cache-hit == 'true' | ||
| run: cd example/ios && RCT_NEW_ARCH_ENABLED=1 pod install | ||
| - name: Builds the iOS app | ||
| run: cd example && npx react-native run-ios | ||
| - name: Use the current package sources in build | ||
| run: cd example && npm run refresh-package | ||
| - name: Build iOS - Fabric | ||
| run: | | ||
| device_name='iPhone 13' | ||
| device=$(xcrun simctl list devices "${device_name}" available | grep "${device_name} (") | ||
| re='\(([-0-9A-Fa-f]+)\)' | ||
| [[ $device =~ $re ]] || exit 1 | ||
| xcodebuild -workspace example.xcworkspace -scheme example -destination "platform=iOS Simulator,id=${BASH_REMATCH[1]}" CODE_SIGNING_ALLOWED=NO COMPILER_INDEX_STORE_ENABLE=NO build | ||
| working-directory: example/ios | ||
| build-Windows-app: | ||
| name: Verify the package and example app builds for Windows platform | ||
| name: Build example app Windows | ||
| runs-on: windows-latest | ||
| needs: [verify] | ||
| steps: | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.