Skip to content

Commit b5ecf04

Browse files
authored
Merge branch 'main' into fix/issue-356-sigabrt-decode-arm64
2 parents 2326d83 + 9da959b commit b5ecf04

File tree

77 files changed

+3153
-1847
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+3153
-1847
lines changed
Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
name: Build All (Test)
2+
3+
# Manually-triggered workflow that builds all SDKs and example projects.
4+
# Use this to verify everything compiles after changes.
5+
6+
on:
7+
workflow_dispatch: {}
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
kotlin-sdk:
14+
name: Kotlin SDK (JVM + Android)
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Setup JDK
22+
uses: actions/setup-java@v4
23+
with:
24+
distribution: 'temurin'
25+
java-version: '17'
26+
27+
- name: Setup Android SDK
28+
uses: android-actions/setup-android@v3
29+
30+
- name: Setup local.properties
31+
working-directory: sdk/runanywhere-kotlin
32+
run: |
33+
echo "sdk.dir=${ANDROID_SDK_ROOT}" > local.properties
34+
35+
- name: Build JVM JAR
36+
working-directory: sdk/runanywhere-kotlin
37+
run: |
38+
chmod +x gradlew
39+
./gradlew jvmJar -Prunanywhere.testLocal=false
40+
41+
- name: Build Android AAR (Debug)
42+
working-directory: sdk/runanywhere-kotlin
43+
run: ./gradlew assembleDebug -Prunanywhere.testLocal=false
44+
continue-on-error: true
45+
46+
- name: Build Backend Modules
47+
working-directory: sdk/runanywhere-kotlin
48+
run: |
49+
./gradlew :modules:runanywhere-core-llamacpp:assembleDebug -Prunanywhere.testLocal=false || true
50+
./gradlew :modules:runanywhere-core-onnx:assembleDebug -Prunanywhere.testLocal=false || true
51+
continue-on-error: true
52+
53+
- name: Publish to Maven Local
54+
working-directory: sdk/runanywhere-kotlin
55+
run: ./gradlew publishToMavenLocal -Prunanywhere.testLocal=false
56+
continue-on-error: true
57+
58+
web-sdk:
59+
name: Web SDK (TypeScript)
60+
runs-on: ubuntu-latest
61+
62+
steps:
63+
- name: Checkout
64+
uses: actions/checkout@v4
65+
66+
- name: Setup Node.js
67+
uses: actions/setup-node@v4
68+
with:
69+
node-version: '20'
70+
71+
- name: Install Dependencies
72+
working-directory: sdk/runanywhere-web
73+
run: npm install
74+
75+
- name: TypeScript Typecheck
76+
working-directory: sdk/runanywhere-web/packages/core
77+
run: npx tsc --noEmit
78+
79+
- name: TypeScript Build
80+
working-directory: sdk/runanywhere-web/packages/core
81+
run: npx tsc
82+
83+
swift-sdk:
84+
name: Swift SDK
85+
runs-on: macos-14
86+
87+
steps:
88+
- name: Checkout
89+
uses: actions/checkout@v4
90+
91+
- name: Swift Build (remote XCFrameworks)
92+
run: swift build
93+
94+
- name: Swift Test
95+
run: swift test
96+
continue-on-error: true
97+
98+
android-app:
99+
name: Android Example App
100+
runs-on: ubuntu-latest
101+
102+
steps:
103+
- name: Checkout
104+
uses: actions/checkout@v4
105+
106+
- name: Setup JDK
107+
uses: actions/setup-java@v4
108+
with:
109+
distribution: 'temurin'
110+
java-version: '17'
111+
112+
- name: Setup Android SDK
113+
uses: android-actions/setup-android@v3
114+
115+
- name: Setup local.properties
116+
run: |
117+
echo "sdk.dir=${ANDROID_SDK_ROOT}" > examples/android/RunAnywhereAI/local.properties
118+
echo "sdk.dir=${ANDROID_SDK_ROOT}" > sdk/runanywhere-kotlin/local.properties
119+
120+
- name: Build Android App
121+
working-directory: examples/android/RunAnywhereAI
122+
run: |
123+
chmod +x gradlew
124+
./gradlew assembleDebug -Prunanywhere.testLocal=false
125+
continue-on-error: true
126+
127+
intellij-plugin:
128+
name: IntelliJ Plugin
129+
runs-on: ubuntu-latest
130+
131+
steps:
132+
- name: Checkout
133+
uses: actions/checkout@v4
134+
135+
- name: Setup JDK
136+
uses: actions/setup-java@v4
137+
with:
138+
distribution: 'temurin'
139+
java-version: '17'
140+
141+
- name: Setup Android SDK
142+
uses: android-actions/setup-android@v3
143+
144+
- name: Setup local.properties
145+
run: |
146+
echo "sdk.dir=${ANDROID_SDK_ROOT}" > sdk/runanywhere-kotlin/local.properties
147+
148+
- name: Publish SDK to Maven Local
149+
working-directory: sdk/runanywhere-kotlin
150+
run: |
151+
chmod +x gradlew
152+
./gradlew publishToMavenLocal -Prunanywhere.testLocal=false
153+
154+
- name: Build IntelliJ Plugin
155+
working-directory: examples/intellij-plugin-demo/plugin
156+
run: |
157+
chmod +x gradlew
158+
./gradlew buildPlugin
159+
160+
summary:
161+
name: Build Summary
162+
needs: [kotlin-sdk, web-sdk, swift-sdk, android-app, intellij-plugin]
163+
if: always()
164+
runs-on: ubuntu-latest
165+
166+
steps:
167+
- name: Build Results
168+
run: |
169+
echo "## Build All (Test) Results" >> $GITHUB_STEP_SUMMARY
170+
echo "" >> $GITHUB_STEP_SUMMARY
171+
echo "| Project | Status |" >> $GITHUB_STEP_SUMMARY
172+
echo "|---------|--------|" >> $GITHUB_STEP_SUMMARY
173+
echo "| Kotlin SDK (JVM + Android) | ${{ needs.kotlin-sdk.result == 'success' && 'Pass' || needs.kotlin-sdk.result }} |" >> $GITHUB_STEP_SUMMARY
174+
echo "| Web SDK (TypeScript) | ${{ needs.web-sdk.result == 'success' && 'Pass' || needs.web-sdk.result }} |" >> $GITHUB_STEP_SUMMARY
175+
echo "| Swift SDK | ${{ needs.swift-sdk.result == 'success' && 'Pass' || needs.swift-sdk.result }} |" >> $GITHUB_STEP_SUMMARY
176+
echo "| Android Example App | ${{ needs.android-app.result == 'success' && 'Pass' || needs.android-app.result }} |" >> $GITHUB_STEP_SUMMARY
177+
echo "| IntelliJ Plugin | ${{ needs.intellij-plugin.result == 'success' && 'Pass' || needs.intellij-plugin.result }} |" >> $GITHUB_STEP_SUMMARY
178+
echo "" >> $GITHUB_STEP_SUMMARY
179+
echo "Triggered by: ${{ github.actor }}" >> $GITHUB_STEP_SUMMARY
180+
echo "Commit: ${{ github.sha }}" >> $GITHUB_STEP_SUMMARY

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ lint/tmp/
183183
lint/reports/
184184
.kotlin/
185185
*.jar
186-
!gradle/wrapper/gradle-wrapper.jar
186+
!**/gradle/wrapper/gradle-wrapper.jar
187187
*.war
188188
*.nar
189189
*.ear

.idea/.name

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/10_Clean_All.xml

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/1_Setup.xml

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/2_Build_SDK.xml

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/3_Build_SDK_Release.xml

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/4_Publish_SDK_to_Maven_Local.xml

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/1_Build_Android_App.xml renamed to .idea/runConfigurations/5_Build_Android_App.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/5__Build_SDK___Run_Android_App.xml

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)