@@ -65,6 +65,7 @@ workflows:
65
65
- arm64
66
66
- package_crypto
67
67
- package_check
68
+ - package_core
68
69
- package_schema
69
70
- package_schema_derive
70
71
- package_std
@@ -171,6 +172,10 @@ jobs:
171
172
name : " contracts/staking: integration-test"
172
173
working_directory : ~/project/contracts/staking
173
174
command : cargo wasm --locked && cargo integration-test --locked
175
+ - run :
176
+ name : " packages/core: test"
177
+ working_directory : ~/project/packages/core
178
+ command : cargo test --all-features --locked
174
179
- run :
175
180
name : " packages/crypto: test"
176
181
working_directory : ~/project/packages/crypto
@@ -285,6 +290,62 @@ jobs:
285
290
- target/debug/deps
286
291
key : cargocache-v2-package_check-rust:1.73-{{ checksum "Cargo.lock" }}
287
292
293
+ package_core :
294
+ docker :
295
+ - image : rust:1.73
296
+ environment :
297
+ # Limit the number of parallel jobs to avoid OOM crashes during doc testing
298
+ RUST_TEST_THREADS : 8
299
+ steps :
300
+ - checkout
301
+ - run :
302
+ name : Version information
303
+ command : rustc --version; cargo --version; rustup --version; rustup target list --installed
304
+ - restore_cache :
305
+ keys :
306
+ - cargocache-v2-package_core-rust:1.73-{{ checksum "Cargo.lock" }}
307
+ - run :
308
+ name : Add thumbv7em-none-eabi target
309
+ command : rustup target add thumbv7em-none-eabi && rustup target list --installed
310
+ - run :
311
+ name : Add wasm32 target
312
+ command : rustup target add wasm32-unknown-unknown && rustup target list --installed
313
+ - run :
314
+ name : Build library for native target (no features)
315
+ working_directory : ~/project/packages/core
316
+ command : cargo build --locked --no-default-features
317
+ - run :
318
+ name : Build library for wasm target (no features)
319
+ working_directory : ~/project/packages/core
320
+ command : cargo wasm --locked --no-default-features
321
+ - run :
322
+ name : Build library for no_std target (no features)
323
+ working_directory : ~/project/packages/core
324
+ command : cargo no-std --locked --no-default-features
325
+ - run :
326
+ name : Run unit tests (no features)
327
+ working_directory : ~/project/packages/core
328
+ command : cargo test --locked --no-default-features
329
+ - run :
330
+ name : Build library for native target (all features)
331
+ working_directory : ~/project/packages/core
332
+ command : cargo build --locked --features std
333
+ - run :
334
+ name : Build library for wasm target (all features)
335
+ working_directory : ~/project/packages/core
336
+ command : cargo wasm --locked --features std
337
+ - run :
338
+ name : Run unit tests (all features)
339
+ working_directory : ~/project/packages/core
340
+ command : cargo test --locked --features std
341
+ - save_cache :
342
+ paths :
343
+ - /usr/local/cargo/registry
344
+ - target/debug/.fingerprint
345
+ - target/debug/build
346
+ - target/debug/deps
347
+ key : cargocache-v2-package_core-rust:1.73-{{ checksum "Cargo.lock" }}
348
+
288
349
package_schema :
289
350
docker :
290
351
- image : rust:1.73
@@ -925,6 +986,14 @@ jobs:
925
986
name : Clippy linting on schema-derive
926
987
working_directory : ~/project/packages/schema-derive
927
988
command : cargo clippy --all-targets --tests -- -D warnings
989
+ - run :
990
+ name : Clippy linting on core (no feature flags)
991
+ working_directory : ~/project/packages/core
992
+ command : cargo clippy --all-targets -- -D warnings
993
+ - run :
994
+ name : Clippy linting on core (all feature flags)
995
+ working_directory : ~/project/packages/core
996
+ command : cargo clippy --all-features --all-targets -- -D warnings
928
997
- run :
929
998
name : Clippy linting on std (no feature flags)
930
999
working_directory : ~/project/packages/std
@@ -997,8 +1066,9 @@ jobs:
997
1066
name : Run tests with coverage
998
1067
command : |
999
1068
mkdir -p reports
1000
- cargo test
1069
+ cargo test --all-features
1001
1070
1071
+ grcov . -s packages/core --binary-path ./target/debug -t lcov -o ./reports/core.info
1002
1072
grcov . -s packages/crypto --binary-path ./target/debug -t lcov -o ./reports/crypto.info
1003
1073
grcov . -s packages/derive --binary-path ./target/debug -t lcov -o ./reports/derive.info
1004
1074
grcov . -s packages/schema --binary-path ./target/debug -t lcov -o ./reports/schema.info
@@ -1007,6 +1077,9 @@ jobs:
1007
1077
environment :
1008
1078
RUSTFLAGS : " -Cinstrument-coverage"
1009
1079
LLVM_PROFILE_FILE : " cosmwasm-%p-%m.profraw"
1080
+ - codecov/upload :
1081
+ file : reports/core.info
1082
+ flags : cosmwasm-core
1010
1083
- codecov/upload :
1011
1084
file : reports/crypto.info
1012
1085
flags : cosmwasm-crypto
0 commit comments