envoylabs / whoami

An NFT-based user and smart contract nameservice
Apache License 2.0
16 stars 10 forks source link

Bump cosmwasm rustoptimizer to 0.12.6, avoid aarch64 wasms in prod #78

Open sascha1337 opened 2 years ago

sascha1337 commented 2 years ago

Refs:

https://github.com/envoylabs/whoami/blob/22642b62c9d00bce167a8bdcc5909b558507d7f2/scripts/deploy_ci.sh#L18

https://github.com/CosmosContracts/juno/actions/runs/2350428096/workflow#L20

https://github.com/CosmWasm/rust-optimizer/commit/1d4bd676647fa7a02853112d0b6c8763b84b8cef

⚠️ I highly recommend anyone to use the default Linux/amd64 docker image, to build contracts on M1 / arm64 machines. Qemu is being used automatically if needed. Ignore the docker warning inside the log. If it does not work, try the following fixes:

  1. Enable Rosetta on your M1 machine
  2. Increase GB ram allocation on Docker Desktop