From 7b8a71ebd958d9f82de7d3ca3b7f6120c482149e Mon Sep 17 00:00:00 2001 From: Scion Date: Sun, 19 Mar 2023 00:50:43 -0700 Subject: [PATCH] Testing library --- unity-command/entrypoint.sh | 6 ------ unity-project/action.yaml | 11 +++++++++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/unity-command/entrypoint.sh b/unity-command/entrypoint.sh index f2ba1f2..ffbd469 100644 --- a/unity-command/entrypoint.sh +++ b/unity-command/entrypoint.sh @@ -23,8 +23,6 @@ EOF cat $SSH_DIR/config fi -ln -s /Library . - #Activate Unity if [[ "$SERIAL" == "personal" ]]; then UnityBuilder activate -i /usr/bin/unity-editor -u $EMAIL -p $PASSWORD @@ -34,7 +32,3 @@ fi #Run the command. unity-editor $DEFAULT_ARGS $COMMAND - -while true; do - sleep 1 -done \ No newline at end of file diff --git a/unity-project/action.yaml b/unity-project/action.yaml index 07a2f44..99e5de8 100644 --- a/unity-project/action.yaml +++ b/unity-project/action.yaml @@ -34,6 +34,12 @@ runs: uses: act/unity/unity-get-buildtarget@master with: platform: ${{ inputs.platform }} + - name: "Library" + uses: act/common/docker/docker-cp@master + with: + volume: library + fromPath: library:/Library + toPath: Library - name: "Run Unity command." uses: act/unity/unity-command@master with: @@ -43,3 +49,8 @@ runs: email: ${{ inputs.email }} password: ${{ inputs.password }} command: -projectPath ${{ inputs.projectPath }} -buildTarget ${{ steps.getTarget.outputs.buildTarget }} ${{ inputs.command }} + - uses: act/common/docker/docker-cp@master + with: + recreateVolume: true + volume: library + fromPath: Library