Add the rest of the Rust projects to the build tool #53

Merged
savanni merged 13 commits from add-projects-to-build-tool into main 2023-08-07 22:42:23 +00:00
2 changed files with 9 additions and 7 deletions
Showing only changes of commit 98fac30ed6 - Show all commits

View File

@ -34,7 +34,7 @@ if [ -z "${TARGET-}" ]; then
fi
if [ -z "${CMD-}" ]; then
CMD="release"
CMD="test release"
fi
if [ "${CMD}" == "clean" ]; then
@ -42,8 +42,10 @@ if [ "${CMD}" == "clean" ]; then
exit 0
fi
if [ "${TARGET}" == "all" ]; then
build_rust_targets $CMD ${RUST_ALL_TARGETS[*]}
else
build_rust_targets $CMD $TARGET
fi
for cmd in $CMD; do
if [ "${TARGET}" == "all" ]; then
build_rust_targets $cmd ${RUST_ALL_TARGETS[*]}
else
build_rust_targets $cmd $TARGET
fi
done

View File

@ -21,7 +21,7 @@ case $CMD in
$CARGO run $MODULE $PARAMS
;;
release)
$CARGO run --release $MODULE $PARAMS
$CARGO build --release $MODULE $PARAMS
;;
clean)
$CARGO clean $MODULE