Skip to content

Commit 2d19d53

Browse files
ci: test
1 parent 3c0a56b commit 2d19d53

2 files changed

Lines changed: 34 additions & 19 deletions

File tree

.github/workflows/build-android-llm-example.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@ on:
33
pull_request:
44
paths:
55
- .github/workflows/build-android-llm-example.yml
6-
- android/**
7-
- third-party/android/**
8-
- apps/llm/package.json
9-
- apps/llm/android/**
6+
- apps/llm/**
7+
- packages/react-native-executorch/**
108
push:
119
branches:
1210
- main
1311
paths:
1412
- .github/workflows/build-android-llm-example.yml
15-
- android/**
16-
- third-party/android/**
17-
- apps/llm/package.json
18-
- apps/llm/android/**
13+
- apps/llm/**
14+
- packages/react-native-executorch/**
1915
workflow_dispatch:
2016
jobs:
2117
build:
@@ -29,14 +25,25 @@ jobs:
2925
steps:
3026
- name: Check out Git repository
3127
uses: actions/checkout@v4
28+
with:
29+
submodules: recursive
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: '18'
34+
cache: 'yarn'
3235
- name: Setup Java 17
3336
uses: actions/setup-java@v3
3437
with:
3538
distribution: 'zulu'
3639
java-version: 17
37-
- name: Install node dependencies
38-
working-directory: ${{ env.WORKING_DIRECTORY }}
40+
- name: Install root dependencies
3941
run: yarn install --immutable
42+
- name: Install Expo CLI
43+
run: npm install -g @expo/cli
44+
- name: Generate native Android project
45+
working-directory: ${{ env.WORKING_DIRECTORY }}
46+
run: expo run:android --no-build-cache --no-install
4047
- name: Build app
4148
working-directory: ${{ env.WORKING_DIRECTORY }}/android
4249
run: ./gradlew assembleDebug --build-cache -PreactNativeArchitectures=arm64-v8a

.github/workflows/build-ios-llm-example.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
paths:
77
- '.github/workflows/build-ios-llm-example.yml'
88
- '*.podspec'
9-
- 'apps/llm/ios/**'
10-
- 'apps/llm/package.json'
9+
- 'apps/llm/**'
10+
- 'packages/react-native-executorch/**'
1111
pull_request:
1212
paths:
1313
- '.github/workflows/build-ios-llm-example.yml'
1414
- '*.podspec'
15-
- 'apps/llm/ios/**'
16-
- 'apps/llm/package.json'
15+
- 'apps/llm/**'
16+
- 'packages/react-native-executorch/**'
1717
workflow_dispatch:
1818
jobs:
1919
build:
@@ -28,12 +28,20 @@ jobs:
2828
xcode-version: latest-stable
2929
- name: Check out Git repository
3030
uses: actions/checkout@v4
31-
- name: Install node dependencies
31+
with:
32+
submodules: recursive
33+
- name: Setup Node.js
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: '18'
37+
cache: 'yarn'
38+
- name: Install root dependencies
39+
run: yarn install --immutable
40+
- name: Install Expo CLI
41+
run: npm install -g @expo/cli
42+
- name: Generate native iOS project
3243
working-directory: apps/llm
33-
run: yarn
34-
- name: Install pods
35-
working-directory: apps/llm/ios
36-
run: pod install
44+
run: expo run:ios --no-build-cache --no-install
3745
- name: Build app
3846
working-directory: apps/llm/ios
3947
run: |

0 commit comments

Comments
 (0)