Skip to content

Commit

Permalink
Set jna.library.path
Browse files Browse the repository at this point in the history
  • Loading branch information
micbakos-rdx committed Sep 25, 2024
1 parent 04e5702 commit bb3a35b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
- "**"
branches:
- main
- ci/ubuntu-runners

permissions:
id-token: write
Expand Down
4 changes: 4 additions & 0 deletions jvm/sargon-android/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ cargoNdk {

tasks.withType<Test> {
useJUnitPlatform()
// Need to specifically set the path for JNA
// The binary file is not automatically included in the classpath
val triple = project.currentTargetTriple()
systemProperties["jna.library.path"] = "${buildDir}/generated/src/resources/${triple.jnaName}"
}

tasks.withType<KotlinCompile>().configureEach {
Expand Down

0 comments on commit bb3a35b

Please sign in to comment.