test logging
This commit is contained in:
@@ -40,10 +40,6 @@ inputs:
|
|||||||
unityBuilder:
|
unityBuilder:
|
||||||
description: "Whether or not to use the UnityBuilder instead of a Unity command."
|
description: "Whether or not to use the UnityBuilder instead of a Unity command."
|
||||||
required: false
|
required: false
|
||||||
removeContainer:
|
|
||||||
description: "Remove the mock container after building."
|
|
||||||
required: false
|
|
||||||
default: "true"
|
|
||||||
runs:
|
runs:
|
||||||
using: "composite"
|
using: "composite"
|
||||||
steps:
|
steps:
|
||||||
@@ -91,8 +87,4 @@ runs:
|
|||||||
password: ${{ inputs.password }}
|
password: ${{ inputs.password }}
|
||||||
command: ${{ steps.command.outputs.command }}
|
command: ${{ steps.command.outputs.command }}
|
||||||
unityBuilder: ${{ inputs.unityBuilder }}
|
unityBuilder: ${{ inputs.unityBuilder }}
|
||||||
- name: "Remove temporary image."
|
|
||||||
if: ${{ inputs.removeContainer == 'true' }}
|
|
||||||
run: |
|
|
||||||
docker image rm ${{ inputs.imageTag }}
|
|
||||||
shell: bash
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
SERIAL=$1; EMAIL=$2; PASSWORD=$3; COMMAND=$4; UNITY_BUILDER=$5
|
SERIAL=$1; EMAIL=$2; PASSWORD=$3; COMMAND=$4; UNITY_BUILDER=$5
|
||||||
DEFAULT_ARGS="-quit -logFile -"
|
DEFAULT_ARGS="-quit -logFile -"
|
||||||
|
|
||||||
rm -rf $HOME/.config/unity3d
|
rm -rf $HOME/.config/unity3d
|
||||||
@@ -17,8 +17,12 @@ fi
|
|||||||
echo "::group::Running Unity Command"
|
echo "::group::Running Unity Command"
|
||||||
#Run the command.
|
#Run the command.
|
||||||
if [[ -n "$UNITY_BUILDER" ]]; then
|
if [[ -n "$UNITY_BUILDER" ]]; then
|
||||||
|
echo "Using UnityBuilder to run the command:"
|
||||||
|
echo " UnityBuilder $COMMAND"
|
||||||
UnityBuilder $COMMAND
|
UnityBuilder $COMMAND
|
||||||
else
|
else
|
||||||
|
echo "Using unity-editor to run the command:"
|
||||||
|
echo " unity-editor $DEFAULT_ARGS $COMMAND"
|
||||||
unity-editor $DEFAULT_ARGS $COMMAND
|
unity-editor $DEFAULT_ARGS $COMMAND
|
||||||
fi
|
fi
|
||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|||||||
@@ -23,7 +23,9 @@ fi
|
|||||||
|
|
||||||
#Activate Unity
|
#Activate Unity
|
||||||
if [[ "$SERIAL" == "personal" ]]; then
|
if [[ "$SERIAL" == "personal" ]]; then
|
||||||
|
echo "Obtaining personal license for Unity..."
|
||||||
UnityBuilder activate -i /usr/bin/unity-editor -u $USERNAME -p $PASSWORD
|
UnityBuilder activate -i /usr/bin/unity-editor -u $USERNAME -p $PASSWORD
|
||||||
else
|
else
|
||||||
|
echo "Activating Unity License with serial number."
|
||||||
unity-editor $DEFAULT_ARGS -serial $SERIAL -username $USERNAME -password $PASSWORD
|
unity-editor $DEFAULT_ARGS -serial $SERIAL -username $USERNAME -password $PASSWORD
|
||||||
fi
|
fi
|
||||||
Reference in New Issue
Block a user