CI: pinned actions, cargo deny, fuzz smoke; build-android.sh works on Linux
- deny.toml: allow-wildcard-paths for the workspace's own path crates; ignore two unmaintained notices for uniffi 0.28's build-time deps (bincode, paste). - build-android.sh ran uniffi-bindgen on libkv_ffi.dylib, which doesn't exist on the Linux CI runner; pick .so there. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -5,6 +5,7 @@ cd "$(dirname "$0")/.."
|
||||
OUT=../kestrove-android/core-ffi/src/main
|
||||
rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android
|
||||
cargo ndk -t arm64-v8a -t armeabi-v7a -t x86_64 -o "$OUT/jniLibs" build -p kv-ffi --release
|
||||
cargo build -p kv-ffi
|
||||
cargo run -p kv-ffi --bin uniffi-bindgen -- generate --library target/debug/libkv_ffi.dylib --language kotlin --out-dir "$OUT/java"
|
||||
cargo build -p kv-ffi # host library for library-mode bindgen (.so on Linux CI, .dylib on macOS)
|
||||
case "$(uname -s)" in Darwin) HOST_LIB=libkv_ffi.dylib ;; *) HOST_LIB=libkv_ffi.so ;; esac
|
||||
cargo run -p kv-ffi --bin uniffi-bindgen -- generate --library "target/debug/$HOST_LIB" --language kotlin --out-dir "$OUT/java"
|
||||
echo "✅ Android libs + bindings written to $OUT"
|
||||
|
||||
Reference in New Issue
Block a user