Fixed unity actions.

This commit is contained in:
2025-06-27 23:00:45 -07:00
parent 0232664b05
commit 8d72404721
2 changed files with 11 additions and 1 deletions

View File

@@ -31,6 +31,9 @@ inputs:
description: "Whether or not to build if a cache was found. Default: true"
required: false
default: "true"
unityBuilder:
description: "Whether or not to use the UnityBuilder instead of a Unity command."
required: false
sshPublicKey:
description: "Public SSH key to use for git package restoration."
required: false
@@ -101,6 +104,7 @@ runs:
sshPrivateKey: ${{ inputs.sshPrivateKey }}
command: ${{ steps.command.outputs.command }}
noGraphics: ${{ inputs.noGraphics }}
unityBuilder: ${{ inputs.unityBuilder }}
- name: "Upload Library to Cache."
if: ${{ steps.check-cache.outputs.cache-hit != 'true' }}
uses: https://github.com/actions/cache/save@v3

View File

@@ -9,8 +9,9 @@ inputs:
description: "Unity Platform. Options: windows, windows32bit, mac, linux, android"
required: true
serial:
description: "Unity license serial number."
description: "Unity license serial number. Or 'personal' for a personal license."
required: true
default: personal
email:
description: "Unity email."
required: true
@@ -20,6 +21,9 @@ inputs:
command:
description: "Unity command to run."
required: false
unityBuilder:
description: "Whether or not to use the UnityBuilder instead of a Unity command."
required: false
noGraphics:
description: "Whether or not to use the graphics device when running Unity."
required: false
@@ -66,3 +70,5 @@ runs:
sshPrivateKey: ${{ inputs.sshPrivateKey }}
noGraphics: ${{ inputs.noGraphics }}
command: -projectPath ${{ steps.path.outputs.projectPath }} -buildTarget ${{ steps.getTarget.outputs.buildTarget }} ${{ inputs.command }}
unityBuilder: ${{ inputs.unityBuilder }}