@@ -7,6 +7,7 @@ workflows:
7
7
test :
8
8
# Keep those job names in sync with .mergify.yml
9
9
jobs :
10
+ - arm64
10
11
- package_crypto
11
12
- package_schema
12
13
- package_std
@@ -60,6 +61,51 @@ workflows:
60
61
ignore : /.*/
61
62
62
63
jobs :
64
+ arm64 :
65
+ machine :
66
+ image : ubuntu-2004:202101-01
67
+ resource_class : arm.medium
68
+ steps :
69
+ - checkout
70
+ - run :
71
+ name : Install Rust
72
+ command : |
73
+ wget https://static.rust-lang.org/rustup/dist/aarch64-unknown-linux-gnu/rustup-init
74
+ chmod +x rustup-init
75
+ ./rustup-init -y --default-toolchain 1.54.0 --profile minimal
76
+ - run :
77
+ name : Version information
78
+ command : rustc --version; cargo --version; rustup --version; rustup target list --installed
79
+ - run :
80
+ name : Add wasm32 target
81
+ command : rustup target add wasm32-unknown-unknown && rustup target list --installed
82
+ - restore_cache :
83
+ keys :
84
+ - cargocache-v2-arm64-rust:1.54.0-{{ checksum "Cargo.lock" }}
85
+ - run :
86
+ name : " packages/crypto: test"
87
+ working_directory : ~/project/packages/crypto
88
+ command : cargo test --locked
89
+ - run :
90
+ name : " packages/std: test"
91
+ working_directory : ~/project/packages/std
92
+ command : cargo test --locked
93
+ - run :
94
+ name : " packages/vm: test"
95
+ working_directory : ~/project/packages/vm
96
+ command : cargo test --locked
97
+ - run :
98
+ name : " packages/vm: test with all features"
99
+ working_directory : ~/project/packages/vm
100
+ command : cargo test --locked --features iterator,staking,stargate
101
+ - save_cache :
102
+ paths :
103
+ - ~/.cargo/registry
104
+ - target/debug/.fingerprint
105
+ - target/debug/build
106
+ - target/debug/deps
107
+ key : cargocache-v2-arm64-rust:1.54.0-{{ checksum "Cargo.lock" }}
108
+
63
109
package_crypto :
64
110
docker :
65
111
- image : rust:1.54.0
0 commit comments