@@ -113,24 +113,19 @@ jobs:
113
113
if : " matrix.build-no-std && !matrix.coverage"
114
114
shell : bash # Default on Winblows is powershell
115
115
run : |
116
- cd lightning
117
- cargo test --verbose --color always --no-default-features --features no-std
118
- # check if there is a conflict between no-std and the default std feature
119
- cargo test --verbose --color always --features no-std
120
- # check that things still pass without grind_signatures
121
- # note that outbound_commitment_test only runs in this mode, because of hardcoded signature values
122
- cargo test --verbose --color always --no-default-features --features std
123
- # check if there is a conflict between no-std and the c_bindings cfg
124
- RUSTFLAGS="--cfg=c_bindings" cargo test --verbose --color always --no-default-features --features=no-std
125
- cd ..
126
- cd lightning-invoice
127
- cargo test --verbose --color always --no-default-features --features no-std
128
- # check if there is a conflict between no-std and the default std feature
129
- cargo test --verbose --color always --features no-std
130
- # check if there is a conflict between no-std and the c_bindings cfg
131
- RUSTFLAGS="--cfg=c_bindings" cargo test --verbose --color always --no-default-features --features=no-std
116
+ for DIR in lightning lightning-invoice lightning-rapid-gossip-sync; do
117
+ cd $DIR
118
+ cargo test --verbose --color always --no-default-features --features no-std
119
+ # check if there is a conflict between no-std and the default std feature
120
+ cargo test --verbose --color always --features no-std
121
+ # check that things still pass without grind_signatures
122
+ # note that outbound_commitment_test only runs in this mode, because of hardcoded signature values
123
+ cargo test --verbose --color always --no-default-features --features std
124
+ # check if there is a conflict between no-std and the c_bindings cfg
125
+ RUSTFLAGS="--cfg=c_bindings" cargo test --verbose --color always --no-default-features --features=no-std
126
+ cd ..
127
+ done
132
128
# check no-std compatibility across dependencies
133
- cd ..
134
129
cd no-std-check
135
130
cargo check --verbose --color always
136
131
cd ..
0 commit comments