Skip to content

Commit

Permalink
Migrate cosmwasm workspace into its own repo.
Browse files Browse the repository at this point in the history
Delete git-filter-repo script

Move files out of cosmwasm directory

Remove paths from ibc dependencies

Updatge rust.yaml

Update upload-cw-clients workflow

Update rust.yaml msrv

Update links in readme

Do not gitignore root-level Cargo.lock file

Do not exclude ibc-client-tenderint-cw from `make release`
  • Loading branch information
seanchen1991 committed Aug 14, 2024
1 parent a87c2d8 commit d96b68f
Show file tree
Hide file tree
Showing 29 changed files with 180 additions and 141 deletions.
39 changes: 8 additions & 31 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,10 @@ on:
paths:
- .github/workflows/rust.yaml
- Makefile
- '*.toml'
- "*.toml"
- ci/**
- cosmwasm/**
- ibc/**
- ibc-core/**
- ibc-apps/**
- ibc-data-types/**
- ibc-clients/**
- ibc-primitives/**
- ibc-query/**
- ibc-testkit/**
- ibc-derive/**
- tests-integration/**

push:
tags:
- v[0-9]+.*
Expand Down Expand Up @@ -49,25 +40,25 @@ jobs:
- name: Install Rust nightly toolchain with rustfmt
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: nightly
components: rustfmt
toolchain: nightly
components: rustfmt
- name: Install Rust stable toolchain with clippy
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
components: clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Taplo
uses: baptiste0928/cargo-install@v3
with:
crate: taplo-cli
crate: taplo-cli
- name: Run Lint Checks (fmt, clippy, taplo)
run: make lint
- name: Spell Check with Typos
uses: crate-ci/typos@master
with:
config: ./.github/typos.toml
config: ./.github/typos.toml

check-docs:
name: Check Documentations
Expand All @@ -81,20 +72,6 @@ jobs:
- name: Run cargo docs
run: make check-docs

check-features:
name: Check Features
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
- name: Install cargo-hack
uses: taiki-e/install-action@cargo-hack
- name: Run cargo hack
run: make check-features

tests:
name: Run Tests
runs-on: ubuntu-latest
Expand All @@ -112,7 +89,7 @@ jobs:
timeout-minutes: 30
env:
CARGO_MSRV_VERSION: 0.16.0-beta.23
MSRV: 1.72.1
MSRV: 1.75.0
strategy:
matrix:
param:
Expand Down
17 changes: 2 additions & 15 deletions .github/workflows/upload-cw-clients.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,14 @@ on:
paths:
- .github/workflows/upload-cw-clients.yaml
- Cargo.toml
- cosmwasm/**
- ibc/**
- ibc-core/**
- ibc-apps/**
- ibc-clients/**
- ibc-primitives/**
- ibc-testkit/**
- ibc-derive/**

push:
branches: main
paths:
- .github/workflows/upload-cw-clients.yaml
- Cargo.toml
- cosmwasm/**
- ibc/**
- ibc-core/**
- ibc-apps/**
- ibc-clients/**
- ibc-primitives/**
- ibc-testkit/**
- ibc-derive/**

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -48,7 +35,7 @@ jobs:
-v "$(pwd)":/code \
-v "$(pwd)"/target:/target \
-v "${HOME}/.cargo/registry":/usr/local/cargo/registry \
cosmwasm/optimizer:0.16.0 ./cosmwasm/ibc-clients/ics07-tendermint
cosmwasm/optimizer:0.16.0 ./ibc-clients/ics07-tendermint
- name: Fix permissions
run: |
Expand Down
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,6 @@ mc.log
# Ignore OSX .DS_Store file
.DS_Store

# Only ignore the top-level Cargo.lock.
# Specifically, we want the ci/no-std-check/Cargo.lock to be committed
# to ensure a reproducible CI build for that crate.
# This will make it easier to spot bugs such as [this one](https://github.com/cosmos/ibc-rs/pull/560)
# caused by a dependency updated to a faulty version.
/Cargo.lock

# Ignore CosmWasm artifacts
cw-contracts/

Expand Down
Loading

0 comments on commit d96b68f

Please sign in to comment.