leo/.circleci/leo-new.sh

25 lines
495 B
Bash
Raw Normal View History

echo "
Step 4: Downloading parameters. This may take a few minutes..."
2022-09-20 20:51:46 +03:00
# Create a new dummy Leo project.
$LEO new dummy > /dev/null 2>&1 && cd dummy
# Attempt to compile the dummy program until it passes.
# This is necessary to ensure that the universal parameters are downloaded.
declare -i DONE
DONE=1
while [ $DONE -ne 0 ]
do
$LEO build > /dev/null 2>&1
DONE=$?
sleep 0.5
done
2022-09-20 20:51:46 +03:00
2022-08-08 21:15:11 +03:00
# Try to run `leo run`.
$LEO run || exit
# Remove the dummy program.
cd .. && rm -rf dummy