|
| 1 | +name: Check React Native `@next` build |
| 2 | +on: |
| 3 | + pull_request: |
| 4 | + paths: |
| 5 | + - .github/workflows/check-react-native-next.yml |
| 6 | + workflow_dispatch: |
| 7 | + |
| 8 | +jobs: |
| 9 | + build_ios: |
| 10 | + if: github.repository == 'software-mansion/react-native-reanimated' |
| 11 | + runs-on: macos-12 |
| 12 | + strategy: |
| 13 | + matrix: |
| 14 | + react-native-architecture: ['Paper', 'Fabric'] |
| 15 | + fail-fast: false |
| 16 | + concurrency: |
| 17 | + group: ios-react-native-nightly-${{ matrix.react-native-architecture }}-${{ github.ref }} |
| 18 | + cancel-in-progress: true |
| 19 | + steps: |
| 20 | + - name: Create app |
| 21 | + run: npx react-native init app --skip-install --version next |
| 22 | + - name: Install Reanimated |
| 23 | + working-directory: app |
| 24 | + run: yarn add github:software-mansion/react-native-reanimated#${{ github.ref }} |
| 25 | + - name: Install Paper Pods |
| 26 | + if: ${{ matrix.react-native-architecture == 'Paper' }} |
| 27 | + working-directory: app/ios |
| 28 | + run: pod install |
| 29 | + - name: Install Fabric Pods |
| 30 | + if: ${{ matrix.react-native-architecture == 'Fabric' }} |
| 31 | + working-directory: app/ios |
| 32 | + run: export RCT_NEW_ARCH_ENABLED=1 && pod install |
| 33 | + - name: Build app |
| 34 | + working-directory: app |
| 35 | + run: yarn react-native run-ios --no-packager |
| 36 | + |
| 37 | + build_android: |
| 38 | + if: github.repository == 'software-mansion/react-native-reanimated' |
| 39 | + runs-on: ubuntu-latest |
| 40 | + strategy: |
| 41 | + matrix: |
| 42 | + react-native-architecture: ['Paper', 'Fabric'] |
| 43 | + fail-fast: false |
| 44 | + concurrency: |
| 45 | + group: android-react-native-nightly-${{ matrix.react-native-architecture }}-${{ github.ref }} |
| 46 | + cancel-in-progress: true |
| 47 | + steps: |
| 48 | + - name: Set up JDK 18 |
| 49 | + uses: actions/setup-java@v3 |
| 50 | + with: |
| 51 | + distribution: 'zulu' |
| 52 | + java-version: '18' |
| 53 | + - name: Create app |
| 54 | + run: npx react-native init app --skip-install --version next |
| 55 | + - name: Install Reanimated |
| 56 | + working-directory: app |
| 57 | + run: yarn add github:software-mansion/react-native-reanimated#${{ github.ref }} |
| 58 | + - name: Setup Fabric |
| 59 | + if: ${{ matrix.react-native-architecture == 'Fabric' }} |
| 60 | + working-directory: app/android |
| 61 | + run: sed -i 's/newArchEnabled=false/newArchEnabled=true/' gradle.properties |
| 62 | + - name: Build app |
| 63 | + working-directory: app/android |
| 64 | + run: ./gradlew assembleDebug --console=plain |
0 commit comments