Updated with UnityBuilder and cache.
This commit is contained in:
@@ -21,6 +21,12 @@ 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
|
||||
cacheVolume:
|
||||
description: "Name of the volume to cache the Library folder to."
|
||||
required: false
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
@@ -34,10 +40,11 @@ runs:
|
||||
uses: act/unity/unity-get-buildtarget@master
|
||||
with:
|
||||
platform: ${{ inputs.platform }}
|
||||
- name: "Library"
|
||||
- name: "Restore the cached Library folder."
|
||||
if: ${{ inputs.cacheVolume }}
|
||||
uses: act/common/docker/docker-cp@master
|
||||
with:
|
||||
volume: library
|
||||
volume: ${{ inputs.cacheVolume }}
|
||||
toPath: .
|
||||
- name: "Run Unity command."
|
||||
uses: act/unity/unity-command@master
|
||||
@@ -48,8 +55,10 @@ 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
|
||||
- name: "Cache the Library folder."
|
||||
if: ${{ inputs.cacheVolume }}
|
||||
uses: act/common/docker/docker-cp@master
|
||||
with:
|
||||
#recreateVolume: true
|
||||
volume: library
|
||||
recreateVolume: true
|
||||
volume: ${{ inputs.cacheVolume }}
|
||||
fromPath: Library
|
||||
|
||||
Reference in New Issue
Block a user