Skip to content

Commit

Permalink
Merge pull request #5 from Ant0wan/master
Browse files Browse the repository at this point in the history
update(build): adding verbose
  • Loading branch information
Ant0wan authored Sep 24, 2020
2 parents 987a0ad + fa2fc3f commit 50ec06b
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,27 @@
#!/bin/bash
arch=('aarch64' 'x86_64')
printf "Check code base:\n"
if ! (cargo fmt && cargo clippy --all-targets --all-features -- -D clippy::pedantic)
if (cargo fmt && cargo clippy --all-targets --all-features -- -D clippy::pedantic)
then
tput bold
tput setaf 46
printf "OK!\n"
tput init

else
tput bold
tput setaf 196
printf "Code is not clean, Randetect will not compile.\nPlease check the code!\n"
printf "FAILED!\n Code is not clean, Randetect will not compile.\nPlease check the code!\n"
tput init
exit 1
fi
for a in ${arch[@]}
do
printf "Compiling for => "; tput setaf 93; tput bold printf "${a}"; tput init; printf "\n";
printf "Compiling for => "
tput bold
tput setaf 93
printf "$a\n"
tput init
if (cross build --target=${a}-unknown-linux-musl --release &&
cp target/${a}-unknown-linux-musl/release/randetect randetect_${a}-musl)
then
Expand Down

0 comments on commit 50ec06b

Please sign in to comment.