Added Check for files in CI
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Phil 2024-10-06 12:18:40 +02:00
parent af864c362f
commit c5ca705e78
Signed by: Phil
GPG key ID: 350C8B7C4EF5DED4

View file

@ -18,6 +18,13 @@ echo "Compiled successfully!";
mkdir -vp $(dirname "$0")/compiled mkdir -vp $(dirname "$0")/compiled
mv -v *.dat $(dirname "$0")/compiled mv -v *.dat $(dirname "$0")/compiled
rm *.lno rm *.lno
# Check if build is successful
if [ ! -f "compiled/csprogs.dat" ] || [ ! -f "compiled/progs.dat" ] || [ ! -f "compiled/menu.dat" ]; then
echo "Build was not successful. Please check for compiler errors."
exit 1
fi
mkdir dist mkdir dist
if [[ -n "${CI_COMMIT_TAG}" ]] if [[ -n "${CI_COMMIT_TAG}" ]]
then then