Update android and jvm workflows and plugins for root rust /target

This commit is contained in:
Steve Myers 2022-11-14 19:53:07 -06:00
parent 8857c851f6
commit 063f69222a
No known key found for this signature in database
GPG Key ID: 8105A46B22C2D051
7 changed files with 11 additions and 12 deletions

View File

@ -16,5 +16,4 @@ jobs:
- uses: actions/checkout@v2
- uses: actions-rs/audit-check@v1
with:
args: --manifest-path bdk-ffi/Cargo.toml
token: ${{ secrets.GITHUB_TOKEN }}

View File

@ -26,7 +26,7 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
bdk-ffi/target
./target
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Set up JDK

View File

@ -15,7 +15,7 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
./bdk-ffi/target
./target
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Set up JDK
@ -59,7 +59,7 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
./bdk-ffi/target
./target
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Set up JDK

View File

@ -34,7 +34,7 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
bdk-ffi/target
./target
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Set up JDK

View File

@ -22,7 +22,7 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
bdk-ffi/target
./target
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: Set up JDK

View File

@ -114,7 +114,7 @@ internal class UniFfiAndroidPlugin : Plugin<Project> {
}
}
// move the native libs build by cargo from bdk-ffi/target/<architecture>/release/
// move the native libs build by cargo from target/<architecture>/release/
// to their place in the bdk-android library
// the task only copies the available binaries built using the buildAndroid<architecture>Binary tasks
val moveNativeAndroidLibs by tasks.register<Copy>("moveNativeAndroidLibs") {
@ -124,15 +124,15 @@ internal class UniFfiAndroidPlugin : Plugin<Project> {
into("${project.projectDir}/../lib/src/main/jniLibs/")
into("arm64-v8a") {
from("${project.projectDir}/../../bdk-ffi/target/aarch64-linux-android/release-smaller/libbdkffi.so")
from("${project.projectDir}/../../target/aarch64-linux-android/release-smaller/libbdkffi.so")
}
into("x86_64") {
from("${project.projectDir}/../../bdk-ffi/target/x86_64-linux-android/release-smaller/libbdkffi.so")
from("${project.projectDir}/../../target/x86_64-linux-android/release-smaller/libbdkffi.so")
}
into("armeabi-v7a") {
from("${project.projectDir}/../../bdk-ffi/target/armv7-linux-androideabi/release-smaller/libbdkffi.so")
from("${project.projectDir}/../../target/armv7-linux-androideabi/release-smaller/libbdkffi.so")
}
doLast {

View File

@ -37,7 +37,7 @@ internal class UniFfiJvmPlugin : Plugin<Project> {
}
}
// move the native libs build by cargo from bdk-ffi/target/.../release/
// move the native libs build by cargo from target/.../release/
// to their place in the bdk-jvm library
val moveNativeJvmLibs by tasks.register<DefaultTask>("moveNativeJvmLibs") {
@ -76,7 +76,7 @@ internal class UniFfiJvmPlugin : Plugin<Project> {
doFirst {
copy {
with(it) {
from("${project.projectDir}/../../bdk-ffi/target/${this.targetDir}/release-smaller/libbdkffi.${this.ext}")
from("${project.projectDir}/../../target/${this.targetDir}/release-smaller/libbdkffi.${this.ext}")
into("${project.projectDir}/../../bdk-jvm/lib/src/main/resources/${this.resDir}/")
}
}