|
7 | 7 | - cron: '0 0 * * *' # after publishing new nightly version on NPM
|
8 | 8 | workflow_dispatch:
|
9 | 9 |
|
10 |
| -env: |
11 |
| - SCRIPT_PATH: reanimated_repo/.github/workflows/helper/configureDevClient.js |
12 |
| - |
13 | 10 | jobs:
|
14 |
| - build_ios: |
15 |
| - if: github.repository == 'software-mansion/react-native-reanimated' |
16 |
| - runs-on: macos-12 |
17 |
| - strategy: |
18 |
| - matrix: |
19 |
| - react-native-architecture: ['Paper', 'Fabric'] |
20 |
| - fail-fast: false |
21 |
| - concurrency: |
22 |
| - group: ios-expo-dev-client-${{ matrix.react-native-architecture }}-${{ github.ref }} |
23 |
| - cancel-in-progress: true |
24 |
| - steps: |
25 |
| - - name: Check out reanimated repository |
26 |
| - uses: actions/checkout@v4 |
27 |
| - with: |
28 |
| - path: 'reanimated_repo' |
29 |
| - - name: Create Expo app |
30 |
| - run: npx create-expo-app app |
31 |
| - - name: Install expo-dev-client |
32 |
| - working-directory: app |
33 |
| - run: npm install expo-dev-client@next |
34 |
| - - name: Setup configuration |
35 |
| - run: node ${{ env.SCRIPT_PATH }} setBundleIdentifier |
36 |
| - - name: Expo prebuild |
37 |
| - working-directory: app |
38 |
| - run: npx expo prebuild |
39 |
| - - name: Install Reanimated |
40 |
| - working-directory: app |
41 |
| - run: npm install react-native-reanimated@nightly |
42 |
| - - name: Set Fabric |
43 |
| - if: ${{ matrix.react-native-architecture == 'Fabric' }} |
44 |
| - run: node ${{ env.SCRIPT_PATH }} setupFabricIOS |
45 |
| - - name: Install Pods |
46 |
| - working-directory: app/ios |
47 |
| - run: pod install |
48 |
| - - name: Build app |
49 |
| - working-directory: app |
50 |
| - run: yarn react-native run-ios --simulator='iPhone 14' |
51 |
| - |
52 |
| - build_android: |
53 |
| - if: github.repository == 'software-mansion/react-native-reanimated' |
| 11 | + check-expo-dev-client-next-availability: |
54 | 12 | runs-on: ubuntu-latest
|
55 |
| - strategy: |
56 |
| - matrix: |
57 |
| - react-native-architecture: ['Paper', 'Fabric'] |
58 |
| - fail-fast: false |
59 |
| - concurrency: |
60 |
| - group: android-expo-dev-client-${{ matrix.react-native-architecture }}-${{ github.ref }} |
61 |
| - cancel-in-progress: true |
62 | 13 | steps:
|
63 |
| - - name: Check out reanimated repository |
64 |
| - uses: actions/checkout@v4 |
| 14 | + - name: Check Expo dev-client next availability |
| 15 | + run: npm dist-tag ls expo-dev-client | grep next |
| 16 | + id: check-next-availability |
| 17 | + - name: Run next build |
| 18 | + if: steps.check-next-availability.outcome == 'success' |
| 19 | + uses: ./.github/workflows/check-expo-dev-client-action.yml |
| 20 | + with: |
| 21 | + expo_dev_client_version: next |
| 22 | + - name: Run latest build |
| 23 | + uses: ./.github/workflows/check-expo-dev-client-action.yml |
65 | 24 | with:
|
66 |
| - path: 'reanimated_repo' |
67 |
| - - name: Create Expo app |
68 |
| - run: npx create-expo-app app |
69 |
| - - name: Install expo-dev-client |
70 |
| - working-directory: app |
71 |
| - run: npm install expo-dev-client@next |
72 |
| - - name: Setup configuration |
73 |
| - run: node ${{ env.SCRIPT_PATH }} setBundleIdentifier |
74 |
| - - name: Expo prebuild |
75 |
| - working-directory: app |
76 |
| - run: npx expo prebuild |
77 |
| - - name: Install Reanimated |
78 |
| - working-directory: app |
79 |
| - run: npm install react-native-reanimated@nightly |
80 |
| - - name: Set Fabric |
81 |
| - if: ${{ matrix.react-native-architecture == 'Fabric' }} |
82 |
| - run: node ${{ env.SCRIPT_PATH }} setupFabricAndroid |
83 |
| - - name: Build app |
84 |
| - working-directory: app/android |
85 |
| - run: ./gradlew assembleDebug --console=plain |
| 25 | + expo_dev_client_version: latest |
0 commit comments