Skip to content

Commit 0cda789

Browse files
committed
ci: Add Llama demo app build for Android
1 parent 4d09cc9 commit 0cda789

File tree

1 file changed

+43
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)