Added Check for files in CI

This commit is contained in:
Phil 2024-10-06 12:16:10 +02:00
parent 88dd8bff3c
commit 7a9e383b2d
Signed by: Phil
GPG key ID: 350C8B7C4EF5DED4

View file

@ -18,6 +18,14 @@ echo "Compiled successfully!";
mkdir -vp $(dirname "$0")/compiled
mv -v *.dat $(dirname "$0")/compiled
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
if [[ -n "${CI_COMMIT_TAG}" ]]
then