Skip to content

Commit

Permalink
bump optimizer to v0.16.0 (#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso authored Aug 12, 2024
1 parent e521419 commit 0db68c2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ permissions:
on:
push:
tags:
- 'v*'
- "v*"
branches:
- main
- ci/release-contracts

jobs:
release:
runs-on: ubuntu-latest
container: cosmwasm/workspace-optimizer:0.14.0
container: cosmwasm/optimizer:0.16.0
steps:
- uses: actions/checkout@v3

Expand All @@ -29,7 +29,7 @@ jobs:
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Compile contracts
Expand Down
11 changes: 3 additions & 8 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,13 @@ download-deps:

workspace-optimize:
#!/bin/bash
if [[ $(uname -m) == 'arm64' ]]; then docker run --rm -v "$(pwd)":/code \
if [[ $(uname -m) == 'arm64' ]] || [ $(uname -m) == 'aarch64' ]]; then docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
--platform linux/arm64 \
cosmwasm/workspace-optimizer-arm64:0.14.0; \
elif [[ $(uname -m) == 'aarch64' ]]; then docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
--platform linux/arm64 \
cosmwasm/workspace-optimizer-arm64:0.14.0; \
cosmwasm/optimizer-arm64:0.16.0; \
elif [[ $(uname -m) == 'x86_64' ]]; then docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
--platform linux/amd64 \
cosmwasm/workspace-optimizer:0.14.0; fi
cosmwasm/optimizer:0.16.0; fi

0 comments on commit 0db68c2

Please sign in to comment.