fix: update MSRV version #1051
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CosmWasm Compilation Check | |
on: | |
pull_request: | |
paths: | |
- .github/workflows/cw-check.yaml | |
- Makefile | |
- "*.toml" | |
- Cargo.lock | |
- ci/cw-check/** | |
- ibc/** | |
- ibc-core/** | |
- ibc-apps/** | |
- ibc-data-types/** | |
- ibc-clients/** | |
- ibc-primitives/** | |
- ibc-derive/** | |
push: | |
tags: | |
- v[0-9]+.* | |
branches: | |
- "release/*" | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ !startsWith(github.ref, 'refs/tags/') && github.ref != 'refs/heads/main' }} | |
jobs: | |
cw-check: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
# only for caching cargo build artifacts from `cosmwasm/optimizer` | |
- uses: actions-rust-lang/setup-rust-toolchain@v1 | |
- name: Create mount directories | |
run: mkdir -p "${HOME}/.cargo/registry" "$(pwd)"/target | |
- name: Compile `cw-check` | |
run: | | |
docker run \ | |
-v "$(pwd)":/code \ | |
-v "$(pwd)"/target:/target \ | |
-v "${HOME}/.cargo/registry":/usr/local/cargo/registry \ | |
cosmwasm/optimizer:0.16.1 ./ci/cw-check | |
- name: Fix permissions | |
run: | | |
sudo chown -R $(id -u):$(id -g) "$(pwd)"/target | |
sudo chown -R $(id -u):$(id -g) "${HOME}/.cargo/registry" | |
- name: Install `cosmwasm-check` from crates.io | |
uses: baptiste0928/cargo-install@v3 | |
with: | |
crate: cosmwasm-check | |
- name: Check compiled CosmWasm contract | |
working-directory: artifacts | |
run: | | |
sha256sum -c checksums.txt | |
cosmwasm-check cw_check.wasm |