mirror of
				https://github.com/yeslayla/build-godot-action.git
				synced 2025-11-04 16:23:04 +01:00 
			
		
		
		
	Debugging... :/
Debugging... :/ Debugging... :/ Debugging... :/ Debugging... :/ Debugging... :/ Debugging... :/ Debugging... :/ Debug cleanup
This commit is contained in:
		@ -10,12 +10,13 @@ inputs:
 | 
			
		||||
    required: true
 | 
			
		||||
  subdirectory:
 | 
			
		||||
    description: 'Optional name of the subdirectory to put exported project in'
 | 
			
		||||
    required: false
 | 
			
		||||
    default: ""
 | 
			
		||||
  package:
 | 
			
		||||
    description: 'Set true to output an artifact zip file'
 | 
			
		||||
    required: false
 | 
			
		||||
    default: false
 | 
			
		||||
  projectDir:
 | 
			
		||||
    description: 'Location of Godot project in repository'
 | 
			
		||||
    default: ""
 | 
			
		||||
  debugMode:
 | 
			
		||||
    description: 'Whether or not to use `--export-debug`'
 | 
			
		||||
    default: false
 | 
			
		||||
 | 
			
		||||
@ -12,23 +12,26 @@ fi
 | 
			
		||||
mode="export"
 | 
			
		||||
if [ "$6" = "true" ]
 | 
			
		||||
then
 | 
			
		||||
    echo "Exporting in debug mode!"
 | 
			
		||||
    mode="export-debug"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# Export for project
 | 
			
		||||
echo "Building $1 for $2"
 | 
			
		||||
mkdir -p ~/build/${SubDirectoryLocation:-""}
 | 
			
		||||
cd ${5-"~"}
 | 
			
		||||
godot -v --${mode} $2 ~/build/${SubDirectoryLocation:-""}$1
 | 
			
		||||
cd ~
 | 
			
		||||
mkdir -p $GITHUB_WORKSPACE/build/${SubDirectoryLocation:-""}
 | 
			
		||||
cd ${5-"$GITHUB_WORKSPACE"}
 | 
			
		||||
godot --${mode} $2 $GITHUB_WORKSPACE/build/${SubDirectoryLocation:-""}$1
 | 
			
		||||
echo "Build Done"
 | 
			
		||||
 | 
			
		||||
echo ::set-output name=build::~/build/${SubDirectoryLocation:-""}
 | 
			
		||||
echo ::set-output name=build::build/${SubDirectoryLocation:-""}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if [ "$4" = "true" ]
 | 
			
		||||
then
 | 
			
		||||
    mkdir -p ~/package
 | 
			
		||||
    cd ~/build
 | 
			
		||||
    zip ~/package/artifact.zip ${SubDirectoryLocation:-"."} -r
 | 
			
		||||
    echo ::set-output name=artifact::~/package/artifact.zip
 | 
			
		||||
    echo "Packing Build"
 | 
			
		||||
    mkdir -p $GITHUB_WORKSPACE/package
 | 
			
		||||
    cd $GITHUB_WORKSPACE/build
 | 
			
		||||
    zip $GITHUB_WORKSPACE/package/artifact.zip ${SubDirectoryLocation:-"."} -r
 | 
			
		||||
    echo ::set-output name=artifact::package/artifact.zip
 | 
			
		||||
    echo "Done"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user