Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add Android llama demo app build check #133

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/build-android-llama-example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
9 changes: 4 additions & 5 deletions .github/workflows/build-ios-llama-example.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Example app iOS build check
name: Llama Example app iOS build check
on:
push:
branches:
Expand All @@ -17,20 +17,19 @@ on:
jobs:
build:
if: github.repository == 'software-mansion/react-native-executorch'
name: 'Example app iOS build check'
runs-on: macos-latest
concurrency:
group: ios-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Install node dependencies
working-directory: examples/llama
run: yarn

- name: Install pods
working-directory: examples/llama/ios
run: pod install

- name: Build app
working-directory: examples/llama/ios
run: |
Expand Down
Loading