Added Check for files in CI
This commit is contained in:
parent
88dd8bff3c
commit
7a9e383b2d
1 changed files with 8 additions and 0 deletions
8
build.sh
8
build.sh
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue