Skip to content

Commit ec8b568

Browse files
authored
Merge pull request CosmWasm#1224 from CosmWasm/wasmer-2.2
Upgrade Wasmer to 2.2 (oh yeah, CosmWasm on ARM is coming 🐎)
2 parents c92d87a + 0f37cc9 commit ec8b568

File tree

17 files changed

+687
-286
lines changed

17 files changed

+687
-286
lines changed

.circleci/config.yml

+63
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,68 @@ workflows:
6061
ignore: /.*/
6162

6263
jobs:
64+
arm64:
65+
machine:
66+
image: ubuntu-2004:202101-01
67+
resource_class: arm.large
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: "contracts/crypto-verify: integration-test"
87+
working_directory: ~/project/contracts/crypto-verify
88+
command: cargo wasm --locked && cargo integration-test --locked
89+
- run:
90+
name: "contracts/hackatom: integration-test"
91+
working_directory: ~/project/contracts/hackatom
92+
command: cargo wasm --locked && cargo integration-test --locked
93+
- run:
94+
name: "contracts/queue: integration-test"
95+
working_directory: ~/project/contracts/queue
96+
command: cargo wasm --locked && cargo integration-test --locked
97+
- run:
98+
name: "contracts/reflect: integration-test"
99+
working_directory: ~/project/contracts/reflect
100+
command: cargo wasm --locked && cargo integration-test --locked
101+
- run:
102+
name: "contracts/staking: integration-test"
103+
working_directory: ~/project/contracts/staking
104+
command: cargo wasm --locked && cargo integration-test --locked
105+
- run:
106+
name: "packages/crypto: test"
107+
working_directory: ~/project/packages/crypto
108+
command: cargo test --locked
109+
- run:
110+
name: "packages/std: test"
111+
working_directory: ~/project/packages/std
112+
command: cargo test --locked
113+
- run:
114+
name: "packages/vm: test"
115+
working_directory: ~/project/packages/vm
116+
# use all features
117+
command: cargo test --locked --features iterator,staking,stargate
118+
- save_cache:
119+
paths:
120+
- ~/.cargo/registry
121+
- target/debug/.fingerprint
122+
- target/debug/build
123+
- target/debug/deps
124+
key: cargocache-v2-arm64-rust:1.54.0-{{ checksum "Cargo.lock" }}
125+
63126
package_crypto:
64127
docker:
65128
- image: rust:1.54.0

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ and this project adheres to
1212
`SubMsgResult`. Both types are equal when serialized but `ContractResult` is
1313
documented to be the result of a contract execution, which is not the case
1414
here. ([#1232])
15+
- cosmwasm-vm: Upgrade Wasmer to 2.2.0 and bump `MODULE_SERIALIZATION_VERSION`
16+
to "v3-wasmer1". ([#1224])
1517

18+
[#1224]: https://github.com/CosmWasm/cosmwasm/pull/1224
1619
[#1232]: https://github.com/CosmWasm/cosmwasm/pull/1232
1720

1821
## [1.0.0-beta5] - 2022-02-08

Cargo.lock

+64-30
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)