specify whether flixel projects need to pass html5/c++ compilation

This commit is contained in:
2021-09-18 19:16:27 -06:00
parent fe84da9ad4
commit 64902bbe3b
24 changed files with 13 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ jobs:
- KISS_PROJECT=flixel-rpg-tutorial - KISS_PROJECT=flixel-rpg-tutorial
- KISS_PROJECT=kiss-vscode - KISS_PROJECT=kiss-vscode
- KISS_PROJECT=nat-archive-tool - KISS_PROJECT=nat-archive-tool
- KISS_PROJECT=nat-flixel-playground - KISS_PROJECT=nat-flixel-desktop-playground
- KISS_PROJECT=pdf-salad - KISS_PROJECT=pdf-salad
- KISS_PROJECT=leet-code - KISS_PROJECT=leet-code
- KISS_PROJECT=sched - KISS_PROJECT=sched

View File

@@ -19,10 +19,18 @@ then
haxelib install hxcpp haxelib install hxcpp
fi fi
echo "Building $KISS_PROJECT for html5" # if "desktop-" is in the project name, only test for C++
(cd projects/$KISS_PROJECT && haxelib run lime build html5) if [[ $KISS_PROJECT == *desktop-* ]]
echo "Building $KISS_PROJECT for cpp" then
(cd projects/$KISS_PROJECT && haxelib run lime build cpp) (cd projects/$KISS_PROJECT && echo "Building $KISS_PROJECT for cpp" && haxelib run lime build cpp)
# if "web-" is in the project name, only test for HTML5
elif [[ $KISS_PROJECT == *web-* ]]
(cd projects/$KISS_PROJECT && echo "Building $KISS_PROJECT for html5" && haxelib run lime build html5)
# Otherwise require both to succeed
else
(cd projects/$KISS_PROJECT && echo "Building $KISS_PROJECT for html5" && haxelib run lime build html5) && \
(cd projects/$KISS_PROJECT && echo "Building $KISS_PROJECT for cpp" && haxelib run lime build cpp)
fi
# Test other projects with their test.sh file # Test other projects with their test.sh file
else else
(cd projects/$KISS_PROJECT && haxelib install all --always) (cd projects/$KISS_PROJECT && haxelib install all --always)