update
This commit is contained in:
@@ -8,6 +8,9 @@ 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:
|
||||
@@ -15,20 +18,6 @@ runs:
|
||||
id: getTarget
|
||||
run: |
|
||||
#Choose the correct buildTarget: https://docs.unity3d.com/Manual/EditorCommandLineArguments.html
|
||||
UNITY_PLATFORM=${{ inputs.platform }}
|
||||
UNITY_TARGET=$UNITY_PLATFORM
|
||||
|
||||
if [[ $UNITY_PLATFORM == "windows" ]]; then
|
||||
UNITY_TARGET=Win64
|
||||
elif [[ $UNITY_PLATFORM == "windows32bit" ]]; then
|
||||
UNITY_TARGET=Win
|
||||
elif [[ $UNITY_PLATFORM == "mac" ]]; then
|
||||
UNITY_TARGET=OSXUniversal
|
||||
elif [[ $UNITY_PLATFORM == "linux" ]]; then
|
||||
UNITY_TARGET=Linux64
|
||||
elif [[ $UNITY_PLATFORM == "android" ]]; then
|
||||
UNITY_TARGET=Android
|
||||
fi
|
||||
|
||||
echo "::set-output name=buildTarget::$UNITY_TARGET"
|
||||
|
||||
bash ${{ github.action_path }}/get_target.sh "${{ inputs.platform }}"
|
||||
shell: bash
|
||||
Reference in New Issue
Block a user