mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-15 01:56:06 +01:00
chore: update ci and add binding script
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -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
23
misc/scripts/check-bindings.sh
Executable 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user