Переглянути джерело

refactor: update CI and script for one cdk crate

thesimplekid 1 рік тому
батько
коміт
f7b7a2a506

+ 7 - 10
.github/workflows/ci.yml

@@ -26,14 +26,12 @@ jobs:
           - version: stable
         build-args:
           [
-            -p cashu,
-            -p cashu --no-default-features,
-            -p cashu --no-default-features --features wallet,
-            -p cashu --no-default-features --features mint,
-            -p cashu --no-default-features --features all-nuts,
-            -p cashu-sdk,
-            -p cashu-sdk --no-default-features,
-            -p cashu-sdk --no-default-features --features all-nuts,
+            -p cdk,
+            -p cdk --no-default-features,
+            -p cdk --no-default-features --features wallet,
+            -p cdk --no-default-features --features mint --features redb,
+            -p cdk --no-default-features --features mint --features redb,
+            -p cdk --no-default-features --features all-nuts,
           ]
     steps:
     - name: Checkout
@@ -64,8 +62,7 @@ jobs:
           - version: stable
         build-args:
           [
-            -p cashu,
-            -p cashu-sdk,
+            -p cdk,
           ]
     steps:
     - name: Checkout

+ 1 - 2
.github/workflows/test.yml

@@ -18,8 +18,7 @@ jobs:
           - version: stable
         build-args:
           [
-            -p cashu,
-            -p cashu-sdk,
+            -p cdk,
           ]
     steps:
     - name: Checkout Crate

+ 2 - 2
crates/cdk/Cargo.toml

@@ -26,7 +26,7 @@ bitcoin = { version = "0.30", features = ["serde", "rand", "rand-std"] } # light
 lightning-invoice = { version = "0.29", features = ["serde"] }
 once_cell = "1.19"
 serde = { version = "1.0.160", default-features = false, features = ["derive"]}
-serde_json = { version = "1.0.96", default-features = false }
+serde_json = "1.0.96"
 serde_with = "3.4"
 url = "2.3.1"
 tracing = { version = "0.1", default-features = false }
@@ -43,7 +43,7 @@ redb = { version = "2.0.0", optional = true }
 
 [target.'cfg(target_arch = "wasm32")'.dependencies]
 tokio = { workspace = true, features = ["rt", "macros", "sync", "time"] }
-getrandom = { version = "0.2.14" }
+getrandom = { version = "0.2.14", features = ["js"] }
 instant = { version = "0.1", features = [ "wasm-bindgen", "inaccurate" ] }
 
 

+ 4 - 5
misc/scripts/check-crates.sh

@@ -24,11 +24,10 @@ fi
 
 buildargs=(
     "-p cashu"
-    "-p cashu --no-default-features"
-    "-p cashu --no-default-features --features wallet"
-    "-p cashu --no-default-features --features mint"
-    "-p cashu-sdk"
-    "-p cashu-sdk --no-default-features"
+    "-p cdk --no-default-features"
+    "-p cdk --no-default-features --features wallet"
+    "-p cdk --no-default-features --features mint"
+    "-p cdk --no-default-features --features nut13"
 )
 
 for arg in "${buildargs[@]}"; do