Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushmishra2005 committed Dec 17, 2024
1 parent 701452d commit 15ea5df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,11 @@ jobs:
override: true
target: wasm32-unknown-unknown
components: rust-src
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install try-runtime
run: cargo install --git https://github.com/paritytech/try-runtime-cli --tag v0.7.0 --locked
- name: Check Build
run: |
cargo build --release --features try-runtime
cargo update -p home --precise 0.5.9 && cargo build --release --features try-runtime
- name: Check Try-Runtime
run: |
try-runtime --runtime ./target/release/wbuild/cere-runtime/cere_runtime.compact.compressed.wasm \
Expand Down Expand Up @@ -82,8 +80,6 @@ jobs:
override: true
target: wasm32-unknown-unknown
components: rust-src
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Check with Clippy
run: |
cargo update -p home --precise 0.5.9 && cargo clippy --no-deps --all-targets --features runtime-benchmarks,try-runtime --workspace -- --deny warnings
Expand All @@ -105,8 +101,9 @@ jobs:
override: true
target: wasm32-unknown-unknown
components: rust-src
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Update dependency
run: |
cargo update -p home --precise 0.5.9
- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
with:
Expand Down
2 changes: 2 additions & 0 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ rustup target add wasm32-unknown-unknown --toolchain 1.79.0

rustup component add rust-src

cargo update -p home --precise 0.5.9

ln -sf $PWD/scripts/pre-commit.sh $PWD/.git/hooks/pre-commit || true
ln -sf $PWD/scripts/pre-push.sh $PWD/.git/hooks/pre-push || true

0 comments on commit 15ea5df

Please sign in to comment.