Bump uniffi-rs version to 0.28.0 and MSRV to 1.77.1 #1245
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Android | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "bdk-ffi/**" | |
- "bdk-android/**" | |
pull_request: | |
paths: | |
- "bdk-ffi/**" | |
- "bdk-android/**" | |
# The default Android NDK on the ubuntu-22.04 image is 25.2.9519653 | |
env: | |
ANDROID_NDK_ROOT: /usr/local/lib/android/sdk/ndk/25.2.9519653 | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: "Check out PR branch" | |
uses: actions/checkout@v3 | |
- name: "Cache" | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/registry | |
~/.cargo/git | |
./target | |
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} | |
- name: "Set up JDK" | |
uses: actions/setup-java@v3 | |
with: | |
distribution: temurin | |
java-version: 11 | |
- name: "Set default Rust version to 1.77.1" | |
run: rustup default 1.77.1 | |
- name: "Install Rust Android targets" | |
run: rustup target add x86_64-linux-android aarch64-linux-android armv7-linux-androideabi | |
- name: "Build Android library" | |
run: | | |
cd bdk-android | |
./gradlew buildAndroidLib | |
# There are currently no unit tests for bdk-android and the integration tests require the macOS image | |
# which is not working with the older NDK version we are using, so for now we just make sure that the library builds. | |
# - name: "Run Android unit tests" | |
# run: | | |
# cd bdk-android | |
# ./gradlew test --console=rich |