test
This commit is contained in:
@@ -24,10 +24,10 @@ inputs:
|
|||||||
command:
|
command:
|
||||||
description: "Unity command to run."
|
description: "Unity command to run."
|
||||||
required: false
|
required: false
|
||||||
useGraphics:
|
noGraphics:
|
||||||
description: "Whether or not to use the graphics device when running Unity."
|
description: "Whether or not to use the graphics device when running Unity."
|
||||||
required: false
|
required: false
|
||||||
default: "false"
|
default: "true"
|
||||||
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
|
||||||
@@ -62,7 +62,7 @@ runs:
|
|||||||
id: command
|
id: command
|
||||||
run: |
|
run: |
|
||||||
COMMAND="${{ inputs.command }}"
|
COMMAND="${{ inputs.command }}"
|
||||||
if [[ "{{ inputs.useGraphics }}" != "true" ]]; then
|
if [[ "{{ inputs.noGraphics }}" == "true" ]]; then
|
||||||
COMMAND="-nographics $COMMAND"
|
COMMAND="-nographics $COMMAND"
|
||||||
fi
|
fi
|
||||||
echo "command=$COMMAND"
|
echo "command=$COMMAND"
|
||||||
|
|||||||
@@ -30,10 +30,10 @@ inputs:
|
|||||||
description: "Name of the directory to copy the artifacts from."
|
description: "Name of the directory to copy the artifacts from."
|
||||||
required: true
|
required: true
|
||||||
default: artifacts
|
default: artifacts
|
||||||
useGraphics:
|
noGraphics:
|
||||||
description: "Whether or not to use the graphics device when running Unity."
|
description: "Whether or not to use the graphics device when running Unity."
|
||||||
required: false
|
required: false
|
||||||
default: "false"
|
default: "true"
|
||||||
zipName:
|
zipName:
|
||||||
description: "Name of the resulting zip file."
|
description: "Name of the resulting zip file."
|
||||||
required: false
|
required: false
|
||||||
@@ -54,7 +54,7 @@ runs:
|
|||||||
command: ${{ inputs.command }}
|
command: ${{ inputs.command }}
|
||||||
unityBuilder: ${{ inputs.unityBuilder }}
|
unityBuilder: ${{ inputs.unityBuilder }}
|
||||||
cacheVolume: ${{ inputs.cacheVolume }}
|
cacheVolume: ${{ inputs.cacheVolume }}
|
||||||
useGraphics: ${{ inputs.useGraphics }}
|
noGraphics: ${{ inputs.noGraphics }}
|
||||||
- name: "Compress build"
|
- name: "Compress build"
|
||||||
if: ${{ inputs.zipName }}
|
if: ${{ inputs.zipName }}
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -30,10 +30,10 @@ inputs:
|
|||||||
description: "Name of the volume to copy the artifacts to."
|
description: "Name of the volume to copy the artifacts to."
|
||||||
required: true
|
required: true
|
||||||
default: ${{ env.ARTIFACTS_VOLUME }}
|
default: ${{ env.ARTIFACTS_VOLUME }}
|
||||||
useGraphics:
|
noGraphics:
|
||||||
description: "Whether or not to use the graphics device when running Unity."
|
description: "Whether or not to use the graphics device when running Unity."
|
||||||
required: false
|
required: false
|
||||||
default: ${{ env.USE_GRAPHICS || 'false' }}
|
default: ${{ env.NO_GRAPHICS || 'true' }}
|
||||||
artifactsDir:
|
artifactsDir:
|
||||||
description: "Name of the directory to copy the artifacts from."
|
description: "Name of the directory to copy the artifacts from."
|
||||||
required: true
|
required: true
|
||||||
@@ -55,4 +55,4 @@ runs:
|
|||||||
artifactsDir: ${{ inputs.artifactsDir }}
|
artifactsDir: ${{ inputs.artifactsDir }}
|
||||||
cacheVolume: ${{ inputs.cacheVolume }}
|
cacheVolume: ${{ inputs.cacheVolume }}
|
||||||
zipName: ${{ inputs.zipName }}
|
zipName: ${{ inputs.zipName }}
|
||||||
useGraphics: ${{ inputs.useGraphics }}
|
noGraphics: ${{ inputs.noGraphics }}
|
||||||
|
|||||||
@@ -24,10 +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:
|
noGraphics:
|
||||||
description: "Whether or not to use the graphics device when running Unity."
|
description: "Whether or not to use the graphics device when running Unity."
|
||||||
required: false
|
required: false
|
||||||
default: "false"
|
default: "true"
|
||||||
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
|
||||||
@@ -64,7 +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 }}
|
noGraphics: ${{ inputs.noGraphics }}
|
||||||
- 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