Updated actions to not use graphics by default.
This commit is contained in:
@@ -24,6 +24,10 @@ inputs:
|
|||||||
command:
|
command:
|
||||||
description: "Unity command to run."
|
description: "Unity command to run."
|
||||||
required: false
|
required: false
|
||||||
|
useGraphics:
|
||||||
|
description: "Whether or not to use the user graphics device when running Unity."
|
||||||
|
required: false
|
||||||
|
default: "false"
|
||||||
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
|
||||||
@@ -54,6 +58,14 @@ runs:
|
|||||||
|
|
||||||
docker tag $CACHED_CONTAINER ${{ inputs.imageTag }}
|
docker tag $CACHED_CONTAINER ${{ inputs.imageTag }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
- name: "Get Unity Command"
|
||||||
|
id: command
|
||||||
|
run: |
|
||||||
|
COMMAND="${{ inputs.command }}"
|
||||||
|
if [[ "{{ inputs.useGraphics }}" != "true" ]]; then
|
||||||
|
COMMAND="$COMMAND -nographics"
|
||||||
|
fi
|
||||||
|
echo "command=$COMMAND"
|
||||||
- name: "Run Unity command."
|
- name: "Run Unity command."
|
||||||
uses: act/unity/unity@master
|
uses: act/unity/unity@master
|
||||||
with:
|
with:
|
||||||
@@ -61,7 +73,7 @@ runs:
|
|||||||
# serial: "activated"
|
# serial: "activated"
|
||||||
email: ${{ inputs.email }}
|
email: ${{ inputs.email }}
|
||||||
password: ${{ inputs.password }}
|
password: ${{ inputs.password }}
|
||||||
command: ${{ inputs.command }}
|
command: ${{ steps.command.outputs.command }}
|
||||||
unityBuilder: ${{ inputs.unityBuilder }}
|
unityBuilder: ${{ inputs.unityBuilder }}
|
||||||
- name: "Remove temporary image."
|
- name: "Remove temporary image."
|
||||||
if: ${{ inputs.removeContainer == 'true' }}
|
if: ${{ inputs.removeContainer == 'true' }}
|
||||||
|
|||||||
@@ -24,6 +24,10 @@ 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
|
||||||
|
useGraphics:
|
||||||
|
description: "Whether or not to use the user graphics device when running Unity."
|
||||||
|
required: false
|
||||||
|
default: "false"
|
||||||
cacheVolume:
|
cacheVolume:
|
||||||
description: "Name of the volume to cache the Library folder to."
|
description: "Name of the volume to cache the Library folder to."
|
||||||
required: false
|
required: false
|
||||||
@@ -60,6 +64,7 @@ runs:
|
|||||||
password: ${{ inputs.password }}
|
password: ${{ inputs.password }}
|
||||||
command: -projectPath ${{ inputs.projectPath }} -buildTarget ${{ steps.getTarget.outputs.buildTarget }} ${{ inputs.command }}
|
command: -projectPath ${{ inputs.projectPath }} -buildTarget ${{ steps.getTarget.outputs.buildTarget }} ${{ inputs.command }}
|
||||||
removeContainer: ${{ inputs.removeContainer }}
|
removeContainer: ${{ inputs.removeContainer }}
|
||||||
|
useGraphics: ${{ inputs.useGraphics }}
|
||||||
- name: "Cache the Library folder."
|
- name: "Cache the Library folder."
|
||||||
if: inputs.cacheVolume != null
|
if: inputs.cacheVolume != null
|
||||||
uses: act/common/docker/docker-cp@master
|
uses: act/common/docker/docker-cp@master
|
||||||
|
|||||||
Reference in New Issue
Block a user