23 lines
753 B
YAML
23 lines
753 B
YAML
name: unity-get-buildtarget
|
|
description: "Get the correct Unity build target from a provided platform."
|
|
inputs:
|
|
platform:
|
|
description: "Unity Platform. Options: windows, windows32bit, mac, linux, android"
|
|
required: true
|
|
outputs:
|
|
buildTarget:
|
|
description: "Unity Build Target."
|
|
value: ${{ steps.getTarget.outputs.buildTarget }}
|
|
buildArg:
|
|
description: "Unity Build Argument."
|
|
value: ${{ steps.getTarget.outputs.buildArg }}
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: "Get Unity Build Target."
|
|
id: getTarget
|
|
run: |
|
|
#Choose the correct buildTarget: https://docs.unity3d.com/Manual/EditorCommandLineArguments.html
|
|
|
|
bash ${{ github.action_path }}/get_target.sh "${{ inputs.platform }}"
|
|
shell: bash |