chore: update ci and add binding script

This commit is contained in:
thesimplekid
2024-05-06 21:46:15 +01:00
parent 8c4b74f16c
commit 21c8b18dc4
3 changed files with 24 additions and 1 deletions

View File

@@ -66,6 +66,7 @@ jobs:
-p cdk --no-default-features,
-p cdk --no-default-features --features wallet,
-p cdk --no-default-features --features all-nuts,
-p cdk-js
]
steps:
- name: Checkout

23
misc/scripts/check-bindings.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -euo pipefail
# Check bindings
buildargs=(
"-p cdk-js --target wasm32-unknown-unknown"
)
for arg in "${buildargs[@]}"; do
echo "Checking '$arg'"
cargo build $arg
if [[ $arg != *"--target wasm32-unknown-unknown"* ]];
then
cargo test $arg
fi
cargo clippy $arg -- -D warnings
echo
done

View File

@@ -31,7 +31,6 @@ buildargs=(
"-p cdk-redb"
"-p cdk-redb --no-default-features --features wallet"
"-p cdk-redb --no-default-features --features mint"
"-p cdk-js --no-default-features --features"
)
for arg in "${buildargs[@]}"; do