Support React Native 0.75 #3979
Workflow file for this run
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: Test Android build | |
env: | |
YARN_ENABLE_HARDENED_MODE: 0 | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/android-build.yml | |
- packages/react-native-reanimated/android/** | |
- packages/react-native-reanimated/Common/** | |
- apps/paper-example/package.json | |
- apps/paper-example/android/** | |
- apps/fabric-example/package.json | |
- apps/fabric-example/android/** | |
merge_group: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
paths: | |
- .github/workflows/android-build.yml | |
- packages/react-native-reanimated/android/** | |
- packages/react-native-reanimated/Common/** | |
- apps/paper-example/package.json | |
- apps/paper-example/android/** | |
- apps/fabric-example/package.json | |
- apps/fabric-example/android/** | |
jobs: | |
build: | |
if: github.repository == 'software-mansion/react-native-reanimated' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
working-directory: [apps/paper-example, apps/fabric-example] | |
fail-fast: false | |
concurrency: | |
group: android-${{ matrix.working-directory }}-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies in root | |
run: yarn install --immutable | |
- name: Setup Java 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: 17 | |
- name: Restore Reanimated node_modules from cache | |
uses: actions/cache@v3 | |
with: | |
path: packages/react-native-reanimated/node_modules | |
key: ${{ runner.os }}-android-node-modules-reanimated-${{ hashFiles('packages/react-native-reanimated/yarn.lock') }} | |
restore-keys: ${{ runner.os }}-android-node-modules-reanimated- | |
- name: Install Reanimated node_modules | |
working-directory: packages/react-native-reanimated | |
run: yarn install --immutable | |
- name: Restore app node_modules from cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ matrix.working-directory }}/node_modules | |
key: ${{ runner.os }}-android-node-modules-${{ matrix.working-directory }}-${{ hashFiles(format('{0}/yarn.lock', matrix.working-directory)) }} | |
restore-keys: ${{ runner.os }}-android-node-modules-${{ matrix.working-directory }}- | |
- name: Install app node_modules | |
working-directory: ${{ matrix.working-directory }} | |
run: yarn install | |
- name: Build app | |
working-directory: ${{ matrix.working-directory }}/android | |
run: ./gradlew assembleDebug --build-cache -PreactNativeArchitectures=arm64-v8a |