@@ -63,9 +63,9 @@ workflows:
63
63
# Keep those job names in sync with .mergify.yml
64
64
jobs :
65
65
- arm64
66
+ - package_core
66
67
- package_crypto
67
68
- package_check
68
- - package_core
69
69
- package_schema
70
70
- package_schema_derive
71
71
- package_std
@@ -238,38 +238,63 @@ jobs:
238
238
- contracts/staking/target/wasm32-unknown-unknown/release/build
239
239
- contracts/staking/target/wasm32-unknown-unknown/release/deps
240
240
241
- package_crypto :
241
+ package_core :
242
242
docker :
243
243
- image : rust:1.74
244
+ environment :
245
+ # Limit the number of parallel jobs to avoid OOM crashes during doc testing
246
+ RUST_TEST_THREADS : 8
244
247
steps :
245
248
- checkout
246
249
- run :
247
250
name : Version information
248
251
command : rustc --version; cargo --version; rustup --version; rustup target list --installed
249
252
- restore_cache :
250
253
keys :
251
- - cargocache-v2-package_crypto -rust:1.74-{{ checksum "Cargo.lock" }}
254
+ - cargocache-v2-package_core -rust:1.74-{{ checksum "Cargo.lock" }}
252
255
- run :
253
- name : Build (no features)
254
- working_directory : ~/project/packages/crypto
256
+ name : Add thumbv7em-none-eabi target
257
+ command : rustup target add thumbv7em-none-eabi && rustup target list --installed
258
+ - run :
259
+ name : Add wasm32 target
260
+ command : rustup target add wasm32-unknown-unknown && rustup target list --installed
261
+ - run :
262
+ name : Build library for native target (no features)
263
+ working_directory : ~/project/packages/core
255
264
command : cargo build --locked --no-default-features
256
265
- run :
257
- name : Build (all features)
258
- working_directory : ~/project/packages/crypto
259
- command : cargo build --locked --features std
266
+ name : Build library for wasm target (no features)
267
+ working_directory : ~/project/packages/core
268
+ command : cargo wasm --locked --no-default- features
260
269
- run :
261
- name : Run tests
262
- working_directory : ~/project/packages/crypto
263
- command : cargo test --locked --features std
270
+ name : Build library for no_std target (no features)
271
+ working_directory : ~/project/packages/core
272
+ command : cargo no-std --locked --no-default-features
273
+ - run :
274
+ name : Run unit tests (no features)
275
+ working_directory : ~/project/packages/core
276
+ command : cargo test --locked --no-default-features
277
+ - run :
278
+ name : Build library for native target (all features)
279
+ working_directory : ~/project/packages/core
280
+ command : cargo build --locked --all-features
281
+ - run :
282
+ name : Build library for wasm target (all features)
283
+ working_directory : ~/project/packages/core
284
+ command : cargo wasm --locked --all-features
285
+ - run :
286
+ name : Run unit tests (all features)
287
+ working_directory : ~/project/packages/core
288
+ command : cargo test --locked --all-features
264
289
- save_cache :
265
290
paths :
266
291
- /usr/local/cargo/registry
267
292
- target/debug/.fingerprint
268
293
- target/debug/build
269
294
- target/debug/deps
270
- key : cargocache-v2-package_crypto -rust:1.74-{{ checksum "Cargo.lock" }}
295
+ key : cargocache-v2-package_core -rust:1.74-{{ checksum "Cargo.lock" }}
271
296
272
- package_check :
297
+ package_crypto :
273
298
docker :
274
299
- image : rust:1.74
275
300
steps :
@@ -279,78 +304,49 @@ jobs:
279
304
command : rustc --version; cargo --version; rustup --version; rustup target list --installed
280
305
- restore_cache :
281
306
keys :
282
- - cargocache-v2-package_check -rust:1.74-{{ checksum "Cargo.lock" }}
307
+ - cargocache-v2-package_crypto -rust:1.74-{{ checksum "Cargo.lock" }}
283
308
- run :
284
309
name : Build
285
- working_directory : ~/project/packages/check
310
+ working_directory : ~/project/packages/crypto
286
311
command : cargo build --locked
287
312
- run :
288
313
name : Run tests
289
- working_directory : ~/project/packages/check
314
+ working_directory : ~/project/packages/crypto
290
315
command : cargo test --locked
291
316
- save_cache :
292
317
paths :
293
318
- /usr/local/cargo/registry
294
319
- target/debug/.fingerprint
295
320
- target/debug/build
296
321
- target/debug/deps
297
- key : cargocache-v2-package_check -rust:1.74-{{ checksum "Cargo.lock" }}
322
+ key : cargocache-v2-package_crypto -rust:1.74-{{ checksum "Cargo.lock" }}
298
323
299
- package_core :
324
+ package_check :
300
325
docker :
301
326
- image : rust:1.74
302
- environment :
303
- # Limit the number of parallel jobs to avoid OOM crashes during doc testing
304
- RUST_TEST_THREADS : 8
305
327
steps :
306
328
- checkout
307
329
- run :
308
330
name : Version information
309
331
command : rustc --version; cargo --version; rustup --version; rustup target list --installed
310
332
- restore_cache :
311
333
keys :
312
- - cargocache-v2-package_core-rust:1.74-{{ checksum "Cargo.lock" }}
313
- - run :
314
- name : Add thumbv7em-none-eabi target
315
- command : rustup target add thumbv7em-none-eabi && rustup target list --installed
316
- - run :
317
- name : Add wasm32 target
318
- command : rustup target add wasm32-unknown-unknown && rustup target list --installed
319
- - run :
320
- name : Build library for native target (no features)
321
- working_directory : ~/project/packages/core
322
- command : cargo build --locked --no-default-features
323
- - run :
324
- name : Build library for wasm target (no features)
325
- working_directory : ~/project/packages/core
326
- command : cargo wasm --locked --no-default-features
327
- - run :
328
- name : Build library for no_std target (no features)
329
- working_directory : ~/project/packages/core
330
- command : cargo no-std --locked --no-default-features
331
- - run :
332
- name : Run unit tests (no features)
333
- working_directory : ~/project/packages/core
334
- command : cargo test --locked --no-default-features
335
- - run :
336
- name : Build library for native target (all features)
337
- working_directory : ~/project/packages/core
338
- command : cargo build --locked --features std
334
+ - cargocache-v2-package_check-rust:1.74-{{ checksum "Cargo.lock" }}
339
335
- run :
340
- name : Build library for wasm target (all features)
341
- working_directory : ~/project/packages/core
342
- command : cargo wasm --locked --features std
336
+ name : Build
337
+ working_directory : ~/project/packages/check
338
+ command : cargo build --locked
343
339
- run :
344
- name : Run unit tests (all features)
345
- working_directory : ~/project/packages/core
346
- command : cargo test --locked --features std
340
+ name : Run tests
341
+ working_directory : ~/project/packages/check
342
+ command : cargo test --locked
347
343
- save_cache :
348
344
paths :
349
345
- /usr/local/cargo/registry
350
346
- target/debug/.fingerprint
351
347
- target/debug/build
352
348
- target/debug/deps
353
- key : cargocache-v2-package_core -rust:1.74-{{ checksum "Cargo.lock" }}
349
+ key : cargocache-v2-package_check -rust:1.74-{{ checksum "Cargo.lock" }}
354
350
355
351
package_schema :
356
352
docker :
@@ -1006,6 +1002,14 @@ jobs:
1006
1002
#
1007
1003
# Workspace packages
1008
1004
#
1005
+ - run :
1006
+ name : Clippy linting on core (no feature flags)
1007
+ working_directory : ~/project/packages/core
1008
+ command : cargo clippy --all-targets -- -D warnings
1009
+ - run :
1010
+ name : Clippy linting on core (all feature flags)
1011
+ working_directory : ~/project/packages/core
1012
+ command : cargo clippy --all-features --all-targets -- -D warnings
1009
1013
- run :
1010
1014
name : Clippy linting on crypto
1011
1015
working_directory : ~/project/packages/crypto
@@ -1022,14 +1026,6 @@ jobs:
1022
1026
name : Clippy linting on schema-derive
1023
1027
working_directory : ~/project/packages/schema-derive
1024
1028
command : cargo clippy --all-targets --tests -- -D warnings
1025
- - run :
1026
- name : Clippy linting on core (no feature flags)
1027
- working_directory : ~/project/packages/core
1028
- command : cargo clippy --all-targets -- -D warnings
1029
- - run :
1030
- name : Clippy linting on core (all feature flags)
1031
- working_directory : ~/project/packages/core
1032
- command : cargo clippy --all-features --all-targets -- -D warnings
1033
1029
- run :
1034
1030
name : Clippy linting on std (no feature flags)
1035
1031
working_directory : ~/project/packages/std
0 commit comments