1234567891011121314151617 |
- init:
- rustup target add aarch64-apple-ios x86_64-apple-ios aarch64-apple-ios-sim
- rustup target add aarch64-apple-darwin x86_64-apple-darwin
- rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
- cargo install cbindgen
- cargo install cargo-ndk
- python:
- rm -rf dist
- pip install -r bindings-python/requirements.txt
- cargo build --release
- cargo run -p uniffi-bindgen generate src/cashu.udl --language python --no-format -o bindings-python/src/cashu/
- cp ../../target/release/libcashu_ffi.so bindings-python/src/cashu/
- cp ../../target/release/libcashu_ffi.dylib bindings-python/src/cashu/ | true
- cd bindings-python && pip wheel --no-deps -w dist .
- pip install ./bindings-python/dist/cashu_protocol*.whl --force-reinstall
|