Skip to content

Commit

Permalink
Add optimizer.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauro Lacy committed Jul 27, 2022
1 parent 7faa4b7 commit bc13323
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/optimizer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
:

U="cosmwasm"
V="0.12.6"

M=$(uname -m)
#M="x86_64" # Force Intel arch

A="linux/${M/x86_64/amd64}"
S=${M#x86_64}
S=${S:+-$S}

docker run --platform $A --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
$U/workspace-optimizer$S:$V

0 comments on commit bc13323

Please sign in to comment.