Skip to content

Commit

Permalink
ci: add rust toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbarr93 committed Nov 5, 2024
1 parent a8d6755 commit 70b134c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Optimize contracts
run: docker run --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 cosmwasm/workspace-optimizer:0.16.1
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Generate schemas
run: |
sudo ./build_schema.sh
tar -czf schemas.tar.gz schemas/
- name: Optimize contracts
run: docker run --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 cosmwasm/workspace-optimizer:0.16.1

- name: Create artifacts archive
run: tar -czf contracts.tar.gz artifacts/

Expand Down

0 comments on commit 70b134c

Please sign in to comment.