Check Expo dev-client nightly build #124
This file contains 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: Check Expo dev-client nightly build | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/check-expo-dev-client-nightly.yml | |
schedule: | |
- cron: '37 19 * * *' | |
workflow_dispatch: | |
env: | |
SCRIPT_PATH: reanimated_repo/.github/workflows/helper/configureDevClient.js | |
jobs: | |
build_ios: | |
runs-on: macos-12 | |
strategy: | |
matrix: | |
react-native-architecture: ['Paper', 'Fabric'] | |
fail-fast: false | |
concurrency: | |
group: ios-expo-dev-client-${{ matrix.react-native-architecture }}-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: Check out reanimated repository | |
uses: actions/checkout@v3 | |
with: | |
path: 'reanimated_repo' | |
- name: Create Expo app | |
run: npx create-expo-app app | |
- name: Install expo-dev-client | |
working-directory: app | |
run: npm install expo-dev-client@next | |
- name: Setup configuration | |
run: node ${{ env.SCRIPT_PATH }} setBundleIdentifier | |
- name: Expo prebuild | |
working-directory: app | |
run: npx expo prebuild | |
- name: Install Reanimated | |
working-directory: app | |
run: npm install github:software-mansion/react-native-reanimated | |
- name: Set Fabric | |
if: ${{ matrix.react-native-architecture == 'Fabric' }} | |
run: node ${{ env.SCRIPT_PATH }} setupFabricIOS | |
- name: Install Pods | |
working-directory: app/ios | |
run: pod install | |
- name: Build app | |
working-directory: app | |
run: yarn react-native run-ios --simulator='iPhone 14' | |
build_android: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
react-native-architecture: ['Paper', 'Fabric'] | |
fail-fast: false | |
concurrency: | |
group: android-expo-dev-client-${{ matrix.react-native-architecture }}-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: Check out reanimated repository | |
uses: actions/checkout@v3 | |
with: | |
path: 'reanimated_repo' | |
- name: Create Expo app | |
run: npx create-expo-app app | |
- name: Install expo-dev-client | |
working-directory: app | |
run: npm install expo-dev-client@next | |
- name: Setup configuration | |
run: node ${{ env.SCRIPT_PATH }} setBundleIdentifier | |
- name: Expo prebuild | |
working-directory: app | |
run: npx expo prebuild | |
- name: Install Reanimated | |
working-directory: app | |
run: npm install github:software-mansion/react-native-reanimated | |
- name: Set Fabric | |
if: ${{ matrix.react-native-architecture == 'Fabric' }} | |
run: node ${{ env.SCRIPT_PATH }} setupFabricAndroid | |
- name: Build app | |
working-directory: app/android | |
run: ./gradlew assembleDebug --console=plain |