Skip to content

chore: update gradle & kotlin versions #198

chore: update gradle & kotlin versions

chore: update gradle & kotlin versions #198

name: 🤖 Build Android Fabric
on:
push:
branches:
- main
paths:
- '.github/workflows/build-android-fabric.yml'
- 'android/**'
- 'FabricExample/android/**'
- 'yarn.lock'
- 'FabricExample/yarn.lock'
- 'src/specs/**'
pull_request:
paths:
- '.github/workflows/build-android-fabric.yml'
- 'android/**'
- 'FabricExample/android/**'
- 'yarn.lock'
- 'FabricExample/yarn.lock'
- 'src/specs/**'
jobs:
build:
name: Build Android Fabric Example App
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup JDK 11
uses: actions/setup-java@v3
with:
distribution: 'microsoft'
java-version: '11'
- name: Get yarn cache directory path
id: fabric-yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore node_modules from cache
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.fabric-yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-fabric-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install node_modules for FabricExample/
run: yarn install --frozen-lockfile --cwd FabricExample
- name: Restore Gradle cache
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-fabric-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-fabric-gradle-
- name: Run Gradle Build for FabricExample/android/
run: cd FabricExample/android && ./gradlew assembleDebug --build-cache -PreactNativeArchitectures=arm64-v8a && cd ../..