Skip to content

Commit 1cd7ac9

Browse files
committed
Add arm64 job to CI
1 parent 34f55a6 commit 1cd7ac9

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.circleci/config.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ workflows:
77
test:
88
# Keep those job names in sync with .mergify.yml
99
jobs:
10+
- arm64
1011
- package_crypto
1112
- package_schema
1213
- package_std
@@ -60,6 +61,51 @@ workflows:
6061
ignore: /.*/
6162

6263
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+
63109
package_crypto:
64110
docker:
65111
- image: rust:1.54.0

0 commit comments

Comments
 (0)