Skip to content

Commit 0ae6023

Browse files
authored
ci: add llama example build (iOS) (#32)
## Description Added a workflow to build llama example app on iOS. ### Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Documentation update (improves or adds clarity to existing documentation) ### Tested on - [ ] iOS - [ ] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues <!-- Link related issues here using #issue-number --> ### Checklist - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [x] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. -->
1 parent 42f4006 commit 0ae6023

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Example app iOS build check
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- '.github/workflows/build-ios-llama-example.yml'
8+
- '*.podspec'
9+
- 'examples/llama/ios/**'
10+
- 'examples/llama/package.json'
11+
pull_request:
12+
paths:
13+
- '.github/workflows/build-ios-llama-example.yml'
14+
- '*.podspec'
15+
- 'examples/llama/ios/**'
16+
- 'examples/llama/package.json'
17+
jobs:
18+
build:
19+
if: github.repository == 'software-mansion/react-native-executorch'
20+
name: "Example app iOS build check"
21+
runs-on: macos-latest
22+
steps:
23+
- name: Check out Git repository
24+
uses: actions/checkout@v4
25+
26+
- name: Install node dependencies
27+
working-directory: examples/llama
28+
run: yarn
29+
30+
- name: Install pods
31+
working-directory: examples/llama/ios
32+
run: pod install
33+
34+
- name: Build app
35+
working-directory: examples/llama/ios
36+
run: |
37+
set -o pipefail && xcodebuild \
38+
-workspace llama.xcworkspace \
39+
-scheme llama \
40+
-sdk iphonesimulator \
41+
-configuration Debug \
42+
-destination 'platform=iOS Simulator,name=iPhone 16 Pro' \
43+
build \
44+
CODE_SIGNING_ALLOWED=NO | xcbeautify
45+

0 commit comments

Comments
 (0)