Fix cargo test workflow

This commit is contained in:
thunderbiscuit 2023-02-28 11:55:29 -05:00
parent 25617d1f23
commit 44b2ef1382
No known key found for this signature in database
GPG Key ID: 88253696EB836462
4 changed files with 9 additions and 9 deletions

View File

@ -45,7 +45,7 @@ jobs:
if: ${{ matrix.rust.clippy }} if: ${{ matrix.rust.clippy }}
run: cargo clippy --all-targets --features "uniffi/bindgen-tests uniffi/cli" -- -D warnings run: cargo clippy --all-targets --features "uniffi/bindgen-tests uniffi/cli" -- -D warnings
- name: Test - name: Test
run: CLASSPATH=./tests/jna/jna-5.8.0.jar cargo test run: CLASSPATH=./tests/jna/jna-5.8.0.jar cargo test --features uniffi/bindgen-tests,uniffi/cli
fmt: fmt:
name: Rust fmt name: Rust fmt

1
Cargo.lock generated
View File

@ -1296,6 +1296,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f71cc01459bc34cfe43fabf32b39f1228709bc6db1b3a664a92940af3d062376" checksum = "f71cc01459bc34cfe43fabf32b39f1228709bc6db1b3a664a92940af3d062376"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"uniffi_bindgen 0.23.0",
"uniffi_build", "uniffi_build",
"uniffi_core", "uniffi_core",
"uniffi_macros", "uniffi_macros",

View File

@ -6,7 +6,8 @@ edition = "2018"
license = "MIT OR Apache-2.0" license = "MIT OR Apache-2.0"
[lib] [lib]
crate-type = ["staticlib", "cdylib"] crate-type = ["lib", "staticlib", "cdylib"]
#crate-type = ["staticlib", "cdylib"]
name = "bdkffi" name = "bdkffi"
[[bin]] [[bin]]
@ -21,4 +22,5 @@ uniffi = { version = "0.23.0" }
uniffi = { version = "0.23.0", features = ["build"] } uniffi = { version = "0.23.0", features = ["build"] }
[dev-dependencies] [dev-dependencies]
uniffi = { version = "0.23.0", features = ["bindgen-tests"] }
assert_matches = "1.5.0" assert_matches = "1.5.0"

View File

@ -1,8 +1,5 @@
uniffi_macros::build_foreign_language_testcases!( uniffi::build_foreign_language_testcases!(
["src/bdk.udl",], "tests/bindings/test.kts",
[ "tests/bindings/test.swift",
"tests/bindings/test.kts", "tests/bindings/test.py",
"tests/bindings/test.swift",
"tests/bindings/test.py"
]
); );