Skip to content

Commit 8a8c117

Browse files
Merge pull request #486 from RunanywhereAI/smonga/release-v0.19.9
chore(release): v0.19.9 — fix native_ios/native_web/sdk_kotlin release paths
2 parents f11ce6a + 04b81d6 commit 8a8c117

17 files changed

Lines changed: 43 additions & 22 deletions

File tree

.github/workflows/release.yml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,10 @@ jobs:
7979
working-directory: sdk/runanywhere-commons
8080
run: ./scripts/build-ios.sh --backend all --release --include-macos --package
8181
- name: Compute checksums
82-
working-directory: sdk/runanywhere-commons/dist
82+
# build-ios.sh --package writes zips to dist/packages/, not dist/.
83+
# Checksum each packaged zip and keep them in the same directory so
84+
# they upload as one bundle.
85+
working-directory: sdk/runanywhere-commons/dist/packages
8386
run: |
8487
for f in *.zip; do
8588
[ -f "$f" ] && shasum -a 256 "$f" > "$f.sha256"
@@ -90,8 +93,8 @@ jobs:
9093
with:
9194
name: native-ios-macos
9295
path: |
93-
sdk/runanywhere-commons/dist/*.zip
94-
sdk/runanywhere-commons/dist/*.sha256
96+
sdk/runanywhere-commons/dist/packages/*.zip
97+
sdk/runanywhere-commons/dist/packages/*.sha256
9598
retention-days: 7
9699
if-no-files-found: error
97100

@@ -213,12 +216,27 @@ jobs:
213216
working-directory: sdk/runanywhere-web
214217
run: ./scripts/build-web.sh --build-wasm --all-backends
215218
- name: Package Web/WASM outputs
219+
# build-web.sh puts every WASM variant (CPU, WebGPU, sherpa) under
220+
# packages/llamacpp/wasm (see WASM_OUTPUT_DIR in scripts/build-web.sh).
221+
# Also include packages/core/wasm if present (sherpa-onnx artifacts
222+
# sometimes land here). Package only directories that actually exist
223+
# so a missing optional variant (e.g. WebGPU on older emsdk) doesn't
224+
# break the release.
216225
working-directory: sdk/runanywhere-web
217226
run: |
227+
set -euo pipefail
218228
mkdir -p dist
229+
tar_inputs=()
230+
for d in llamacpp/wasm core/wasm onnx/wasm; do
231+
[ -d "packages/$d" ] && tar_inputs+=("$d")
232+
done
233+
if [ ${#tar_inputs[@]} -eq 0 ]; then
234+
echo "::error::No WASM output directories produced by build-web.sh"
235+
exit 1
236+
fi
237+
echo "Packaging: ${tar_inputs[*]}"
219238
tar czf "dist/RACommons-web-v${{ needs.validate.outputs.version }}.tar.gz" \
220-
-C packages \
221-
$(ls packages | grep -E '^(core|llamacpp|onnx)$' | sed 's,$,/wasm,')
239+
-C packages "${tar_inputs[@]}"
222240
shasum -a 256 "dist/RACommons-web-v${{ needs.validate.outputs.version }}.tar.gz" \
223241
> "dist/RACommons-web-v${{ needs.validate.outputs.version }}.tar.gz.sha256"
224242
- name: Upload Web/WASM artifacts
@@ -267,8 +285,11 @@ jobs:
267285
done
268286
ls -la sdk/runanywhere-kotlin/src/androidMain/jniLibs/ || true
269287
- name: Build Kotlin AAR + JAR
288+
# useLocalNatives=true: use the JNI libs staged above from native_android
289+
# artifacts, not the release-asset URLs which don't exist until this
290+
# workflow uploads them at the end.
270291
working-directory: sdk/runanywhere-kotlin
271-
run: ./gradlew build assembleRelease -x test --no-daemon
292+
run: ./gradlew -Prunanywhere.useLocalNatives=true build assembleRelease -x test --no-daemon
272293
- name: Collect Kotlin SDK artifacts
273294
run: |
274295
mkdir -p sdk-staging/kotlin

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ let useLocalNatives = false // Toggle: true for local dev, false for release
4444

4545
// Version for remote XCFrameworks (used when useLocalNatives = false)
4646
// Updated automatically by CI/CD during releases
47-
let sdkVersion = "0.19.8"
47+
let sdkVersion = "0.19.9"
4848

4949
// MetalRT remote binary availability flag.
5050
// Set to `false` until a real checksum for RABackendMetalRT-v<sdkVersion>.zip

sdk/runanywhere-commons/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.19.8
1+
0.19.9

sdk/runanywhere-commons/VERSIONS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# =============================================================================
1515

1616
# Project version (read from VERSION file, but also defined here for scripts)
17-
PROJECT_VERSION=0.19.8
17+
PROJECT_VERSION=0.19.9
1818

1919
# =============================================================================
2020
# Platform Deployment Targets

sdk/runanywhere-flutter/packages/runanywhere/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere
22
description: Privacy-first, on-device AI SDK for Flutter. Run LLMs, STT, TTS, and VAD directly on device with no data leaving the device.
3-
version: 0.19.8
3+
version: 0.19.9
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues

sdk/runanywhere-flutter/packages/runanywhere_genie/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere_genie
22
description: Qualcomm Genie NPU backend for RunAnywhere Flutter SDK. On-device LLM inference on Snapdragon NPU.
3-
version: 0.19.8
3+
version: 0.19.9
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues

sdk/runanywhere-flutter/packages/runanywhere_llamacpp/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere_llamacpp
22
description: LlamaCpp backend for RunAnywhere Flutter SDK. High-performance on-device LLM text generation with GGUF model support.
3-
version: 0.19.8
3+
version: 0.19.9
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues

sdk/runanywhere-flutter/packages/runanywhere_onnx/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: runanywhere_onnx
22
description: ONNX Runtime backend for RunAnywhere Flutter SDK. On-device Speech-to-Text, Text-to-Speech, and Voice Activity Detection.
3-
version: 0.19.8
3+
version: 0.19.9
44
homepage: https://runanywhere.ai
55
repository: https://github.com/RunanywhereAI/runanywhere-sdks
66
issue_tracker: https://github.com/RunanywhereAI/runanywhere-sdks/issues

sdk/runanywhere-kotlin/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ runanywhere.coreVersion=0.1.4
6060
# Must match a GitHub release tag at: https://github.com/RunanywhereAI/runanywhere-sdks/releases
6161
# Contains: RACommons-android (librac_commons.so, librac_commons_jni.so)
6262
runanywhere.commonsVersion=0.1.4
63-
runanywhere.nativeLibVersion=0.19.8
63+
runanywhere.nativeLibVersion=0.19.9

sdk/runanywhere-react-native/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "runanywhere-react-native-monorepo",
3-
"version": "0.19.8",
3+
"version": "0.19.9",
44
"private": true,
55
"description": "RunAnywhere React Native SDK - Multi-Package Monorepo",
66
"workspaces": [

0 commit comments

Comments
 (0)