Skip to content

Commit

Permalink
wip: fix missing EVM build in target dir
Browse files Browse the repository at this point in the history
  • Loading branch information
wischli committed Apr 10, 2024
1 parent e96c1b1 commit 38e710d
Showing 1 changed file with 64 additions and 61 deletions.
125 changes: 64 additions & 61 deletions ci/run-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,70 +9,73 @@ rustup --version
cargo --version

case $TARGET in
cargo-build)
cargo build -p centrifuge-chain --release "$@"
;;

test-general)
cargo test --workspace --release --features runtime-benchmarks,try-runtime --exclude runtime-integration-tests
;;
# cargo-build)
# cargo build -p centrifuge-chain --release "$@"
# ;;
#
# test-general)
# cargo test --workspace --release --features runtime-benchmarks,try-runtime --exclude runtime-integration-tests
# ;;

test-integration)
# TODO: Remove before merging PR
rm -rf target/debug/deps/runtime_integration_tests-*
rm -rf target/debug/build/runtime-integration*
cargo test --release --package runtime-integration-tests --features fast-runtime
;;

lint-fmt)
cargo fmt -- --check
;;

lint-taplo)
cargo install taplo-cli --locked
taplo fmt --check
;;

lint-clippy)
cargo clippy -- -D warnings -A clippy::unnecessary-cast -A clippy::bool-to-int-with-if
;;

benchmark-check)
./scripts/check_benchmarks.sh $RUNTIME
;;

docs-build)
RUSTDOCFLAGS="-D warnings" cargo doc --all --no-deps
;;
try-runtime)
if [ "$1" == "altair" ]; then
echo "Running try-runtime for altair"
RUST_LOG=runtime=trace,try-runtime::cli=trace,executor=trace \
cargo run --release --features try-runtime try-runtime \
--runtime target/release/wbuild/altair-runtime/altair_runtime.wasm \
--chain altair on-runtime-upgrade live \
--uri wss://fullnode.altair.centrifuge.io:443
elif [ "$1" == "centrifuge" ]; then
echo "Running try-runtime for centrifuge"
RUST_LOG=runtime=trace,try-runtime::cli=trace,executor=trace \
cargo run --release --features try-runtime try-runtime \
--runtime target/release/wbuild/centrifuge-runtime/centrifuge_runtime.wasm \
--chain centrifuge on-runtime-upgrade live --uri wss://fullnode.centrifuge.io:443
else
echo "Invalid argument. Please specify 'altair' or 'centrifuge'."
exit 1
fi
;;
subalfred)
# Find all child directories containing Cargo.toml files
# TODO: Filter by crates found in the workspace
# HINT: Use `cargo workspaces list -l" and filter by the paths
dirs=$(find . -name Cargo.toml -print0 | xargs -0 -n1 dirname | sort -u)

# Execute the command "subalfred check" on each directory
for dir in $dirs; do
# Avoiding cargo workspace
if [[ "$dir" == "." ]]; then
continue
fi
subalfred check features $dir
done
# lint-fmt)
# cargo fmt -- --check
# ;;
#
# lint-taplo)
# cargo install taplo-cli --locked
# taplo fmt --check
# ;;
#
# lint-clippy)
# cargo clippy -- -D warnings -A clippy::unnecessary-cast -A clippy::bool-to-int-with-if
# ;;
#
# benchmark-check)
# ./scripts/check_benchmarks.sh $RUNTIME
# ;;
#
# docs-build)
# RUSTDOCFLAGS="-D warnings" cargo doc --all --no-deps
# ;;
#
# try-runtime)
# if [ "$1" == "altair" ]; then
# echo "Running try-runtime for altair"
# RUST_LOG=runtime=trace,try-runtime::cli=trace,executor=trace \
# cargo run --release --features try-runtime try-runtime \
# --runtime target/release/wbuild/altair-runtime/altair_runtime.wasm \
# --chain altair on-runtime-upgrade live \
# --uri wss://fullnode.altair.centrifuge.io:443
# elif [ "$1" == "centrifuge" ]; then
# echo "Running try-runtime for centrifuge"
# RUST_LOG=runtime=trace,try-runtime::cli=trace,executor=trace \
# cargo run --release --features try-runtime try-runtime \
# --runtime target/release/wbuild/centrifuge-runtime/centrifuge_runtime.wasm \
# --chain centrifuge on-runtime-upgrade live --uri wss://fullnode.centrifuge.io:443
# else
# echo "Invalid argument. Please specify 'altair' or 'centrifuge'."
# exit 1
# fi
# ;;
# subalfred)
# # Find all child directories containing Cargo.toml files
# # TODO: Filter by crates found in the workspace
# # HINT: Use `cargo workspaces list -l" and filter by the paths
# dirs=$(find . -name Cargo.toml -print0 | xargs -0 -n1 dirname | sort -u)
#
# # Execute the command "subalfred check" on each directory
# for dir in $dirs; do
# # Avoiding cargo workspace
# if [[ "$dir" == "." ]]; then
# continue
# fi
# subalfred check features $dir
# done
esac

0 comments on commit 38e710d

Please sign in to comment.