-
Notifications
You must be signed in to change notification settings - Fork 16
40 lines (40 loc) · 1.17 KB
/
build-android-llama-example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Llama Example app Android build check
on:
pull_request:
paths:
- .github/workflows/build-android-llama-example.yml
- android/**
- third-party/android/**
- examples/llama/package.json
- examples/llama/android/**
push:
branches:
- main
paths:
- .github/workflows/build-android-llama-example.yml
- android/**
- third-party/android/**
- examples/llama/package.json
- examples/llama/android/**
jobs:
build:
if: github.repository == 'software-mansion/react-native-executorch'
runs-on: ubuntu-latest
env:
WORKING_DIRECTORY: examples/llama
concurrency:
group: android-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Install node dependencies
run: yarn install --immutable
- name: Build app
working-directory: ${{ env.WORKING_DIRECTORY }}/android
run: ./gradlew assembleDebug --build-cache -PreactNativeArchitectures=arm64-v8a