Update entrypoint.sh (#22)

* Update entrypoint.sh

* Update entrypoint.sh

* modified to support proper requirements for godot-ci project

* Modified for testing

* added a copy of the action for testing

* test

* added ls

* added ls debug

* modified ls debug

* Last push fixes the issue with not building, both build tests work

* Modified it so we showcase Support for Testing 3.x and 4.x Godot Projects

* Modified the Github Action names to properly reflect the tests
This commit is contained in:
Bioblaze Payne
2023-07-10 12:31:28 -07:00
committed by GitHub
parent 7773d38d12
commit f362e14dc5
14 changed files with 188 additions and 5 deletions

View File

@ -2,14 +2,16 @@
set -e
# Move godot templates already installed from the docker image to home
mv -n /root/.local ~
mkdir -v -p ~/.local/share/godot/export_templates
cp -a /root/.local/share/godot/templates/. ~/.local/share/godot/export_templates/
if [ "$3" != "" ]
then
SubDirectoryLocation="$3/"
fi
mode="export"
mode="export-release"
if [ "$6" = "true" ]
then
echo "Exporting in debug mode!"
@ -20,7 +22,7 @@ fi
echo "Building $1 for $2"
mkdir -p $GITHUB_WORKSPACE/build/${SubDirectoryLocation:-""}
cd "$GITHUB_WORKSPACE/$5"
godot --${mode} "$2" $GITHUB_WORKSPACE/build/${SubDirectoryLocation:-""}$1
godot --headless --${mode} "$2" $GITHUB_WORKSPACE/build/${SubDirectoryLocation:-""}$1
echo "Build Done"
echo ::set-output name=build::build/${SubDirectoryLocation:-""}