This commit is contained in:
2023-03-24 22:27:49 -07:00
parent 84dff91168
commit 834357eac1
4 changed files with 81 additions and 33 deletions

View File

@@ -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