0.1.0 • Published 2 years ago

@akiojin/setup-unity-cache-github-action v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

setup-unity-cache-github-action

BuildAndTest

This action sets up a cache in Unity.

Usage

Example of only changing all cache directories

- uses: akiojin/setup-unity-cache-github-action@v0.1.0
  with:
    upm-cache-root: ${{ runner.temp }}/cache
    upm-npm-cache-path: ${{ runner.temp }}/cache/npm
    upm-cache-path: ${{ runner.temp }}/cache/packages
    upm-git-lfs-cache-path: ${{ runner.temp }}/cache/git-lfs
    upm-enable-git-lfs-cache: true

Example of changing only the global cache directory

- uses: akiojin/setup-unity-cache-github-action@v0.1.0
  with:
    upm-cache-root: ${{ runner.temp }}/cache

Example of enabling Git LFS

- uses: akiojin/setup-unity-cache-github-action@v0.1.0
  with:
    upm-enable-git-lfs-cache: true

Arguments

Inputs

NameRequiredTypeDefaultDescription
upm-cache-rootfalsestringSpecifies the root directory of the global cache to be used by the Package Manager. If omitted, the Unity default cache directory is used.
upm-npm-cache-pathfalsestringSpecify the absolute path to the location where you want Package Manager to store package metadata and tarballs. By default, this is the npm subfolder under the global cache root.
upm-cache-pathfalsestringSpecify the absolute path to the location where you want Package Manager to store the uncompressed contents of package tarballs. By default, this is the packages subfolder under the global cache root.
upm-git-lfs-cache-pathfalsestringSpecify the absolute path to the location where you want Package Manager to store the Git LFS cache. By setting this path, you automatically enable the Git LFS cache.
upm-enable-git-lfs-cachefalsebooleanfalseSpecify any value except true to enable the Git LFS cache. Package Manager will use the git-lfs subfolder under the global cache root.

License

Any contributions made under this project will be governed by the MIT License.

0.1.0

2 years ago