Skip to content

Commit

Permalink
Temp 13: Set Rust compiler CI build to stable (1.72.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
thunderbiscuit committed Oct 2, 2023
1 parent 45b107d commit f3cb156
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/publish-jvm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
distribution: temurin
java-version: 11

- name: "Set default Rust version to 1.67.0"
run: rustup default 1.67.0
- name: "Set default Rust version to 1.72.1"
run: rustup default 1.72.1

- name: "Install aarch64 Rust target"
run: rustup target add aarch64-apple-darwin
Expand Down Expand Up @@ -54,8 +54,8 @@ jobs:
distribution: temurin
java-version: 11

- name: "Set default Rust version to 1.67.0"
run: rustup default 1.67.0
- name: "Set default Rust version to 1.72.1"
run: rustup default 1.72.1

- name: "Install x86_64-pc-windows-msvc Rust target"
run: rustup target add x86_64-pc-windows-msvc
Expand Down Expand Up @@ -94,8 +94,8 @@ jobs:
distribution: temurin
java-version: 11

- name: "Set default Rust version to 1.67.0"
run: rustup default 1.67.0
- name: "Set default Rust version to 1.72.1"
run: rustup default 1.72.1

- name: "Build bdk-jvm library"
run: |
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/test-jvm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,16 @@ jobs:
distribution: temurin
java-version: 11

- name: "Set default Rust version to 1.67.0"
run: rustup default 1.67.0
- name: "Set default Rust version to 1.72.1"
run: rustup default 1.72.1

- name: "Run JVM tests"
run: |
cd bdk-jvm
./gradlew test
./gradlew buildJvmLib
# ./gradlew test

- name: "Print directory structure"
run: |
pwd
ls -R
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ internal class UniFfiJvmPlugin : Plugin<Project> {
}

// workingDir("${project.projectDir}/../../bdk-ffi")
workingDir("${project.projectDir}/../../")
val cargoArgs: List<String> = listOf("run", "--bin", "uniffi-bindgen", "generate", "--library", libraryPath, "--language", "kotlin", "--out-dir", "./bdk-jvm/lib/src/main/kotlin/", "--no-format")
workingDir("${project.projectDir}/../")
val cargoArgs: List<String> = listOf("run", "--bin", "uniffi-bindgen", "generate", "--library", libraryPath, "--language", "kotlin", "--out-dir", "./", "--no-format")
// val cargoArgs: List<String> = listOf("run", "--bin", "uniffi-bindgen", "generate", "--library", libraryPath, "--language", "kotlin", "--out-dir", "./bdk-jvm/lib/src/main/kotlin/", "--no-format")

executable("cargo")
args(cargoArgs)
Expand Down

0 comments on commit f3cb156

Please sign in to comment.