added composite
This commit is contained in:
62
unity-composite/action.yaml
Normal file
62
unity-composite/action.yaml
Normal file
@@ -0,0 +1,62 @@
|
|||||||
|
name: unity-project
|
||||||
|
description: "Run a Unity command using a project's version and a build target."
|
||||||
|
inputs:
|
||||||
|
platform:
|
||||||
|
description: "Unity Platform. Options: windows, windows32bit, mac, linux, android"
|
||||||
|
required: true
|
||||||
|
email:
|
||||||
|
description: "Unity email."
|
||||||
|
required: true
|
||||||
|
password:
|
||||||
|
description: "Unity password."
|
||||||
|
required: true
|
||||||
|
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: true
|
||||||
|
artifactsVolume:
|
||||||
|
description: "Name of the volume to copy the artifacts to."
|
||||||
|
required: true
|
||||||
|
artifactsDirectory:
|
||||||
|
description: "Name of the directory to copy the artifacts from."
|
||||||
|
required: true
|
||||||
|
default: artifacts
|
||||||
|
zipName:
|
||||||
|
description: "Name of the resulting zip file."
|
||||||
|
required: false
|
||||||
|
removeContainer:
|
||||||
|
description: "Remove the mock container after building."
|
||||||
|
required: false
|
||||||
|
default: "false"
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- uses: act/unity/unity-project@master
|
||||||
|
with:
|
||||||
|
platform: ${{ inputs.platform }}
|
||||||
|
email: ${{ inputs.email }}
|
||||||
|
password: ${{ inputs.password }}
|
||||||
|
command: ${{ inputs.command }}
|
||||||
|
unityBuilder: ${{ inputs.unityBuilder }}
|
||||||
|
cacheVolume: ${{ inputs.cacheVolume }}
|
||||||
|
- name: "Compress build"
|
||||||
|
if: ${{ inputs.zipName }}
|
||||||
|
env:
|
||||||
|
WORKDIR: build
|
||||||
|
uses: act/common/utils/compress@master
|
||||||
|
with:
|
||||||
|
name: ../${{ inputs.artifactsDirectory }}/${{ inputs.zipName }}
|
||||||
|
files: .
|
||||||
|
- name: "Copy artifacts"
|
||||||
|
uses: act/common/docker/docker-cp@master
|
||||||
|
with:
|
||||||
|
recreateVolume: true
|
||||||
|
volume: ${{inputs.artifactsVolume }}
|
||||||
|
fromPath: ${{ inputs.artifactsDirectory }}/.
|
||||||
Reference in New Issue
Block a user