Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
indirection42 committed May 22, 2024
1 parent b65e91e commit 458ccd3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,13 @@ jobs:
tar --zstd -xf rv32e.tar.zst
mv rve-nightly ~/.rustup/toolchains/
- name: Install polkatool
run: make tools

- uses: Swatinem/rust-cache@v2

- name: Check format
run: cargo fmt --all -- --check

- name: Install polkatool
run: make tools

- name: Generate poc-guest.polkavm
run: make poc-guest

- name: Custom cargo clippy
run: make clippy
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ run: chainspec
poc-host-%: poc-guest-%
RUST_LOG=trace cargo run -p poc-host-$*

poc-guests: poc-guest-pass-custom-type poc-guest-query-balance

poc-guest-%:
cd poc/guests; RUSTFLAGS=$(GUEST_RUST_FLAGS) cargo build -q --release --bin $* -p $*
mkdir -p output
Expand All @@ -23,10 +25,11 @@ check:
SKIP_WASM_BUILD= cargo check
cd poc/guests; cargo check

clippy:

clippy: poc-guests
cargo clippy --no-default-features --target=wasm32-unknown-unknown -p poc-executor
SKIP_WASM_BUILD= cargo clippy -- -D warnings
cd poc/guest; cargo clippy
cd poc/guests; cargo clippy

chainspec:
cargo build -p poc-runtime --release
Expand Down

0 comments on commit 458ccd3

Please sign in to comment.