Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akiojin/setup-unity-cache-github-action
https://github.com/akiojin/setup-unity-cache-github-action
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/akiojin/setup-unity-cache-github-action
- Owner: akiojin
- License: mit
- Created: 2023-03-13T11:40:52.000Z (over 1 year ago)
- Default Branch: develop
- Last Pushed: 2024-10-01T08:10:12.000Z (about 2 months ago)
- Last Synced: 2024-10-12T05:04:51.391Z (about 1 month ago)
- Language: Shell
- Size: 637 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# setup-unity-cache-github-action
![BuildAndTest](https://github.com/akiojin/setup-unity-cache-github-action/actions/workflows/BuildAndTest.yml/badge.svg)
This action sets up a cache in Unity.
## Usage
### Example of only changing all cache directories
```yml
- uses: akiojin/[email protected]
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
```yml
- uses: akiojin/[email protected]
with:
upm-cache-root: ${{ runner.temp }}/cache
```### Example of enabling Git LFS
```yml
- uses: akiojin/[email protected]
with:
upm-enable-git-lfs-cache: true
```## Arguments
### Inputs
| Name | Required | Type | Default | Description |
| -------------------------- | -------- | --------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `upm-cache-root` | `false` | `string` | | Specifies 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-path` | `false` | `string` | | Specify 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-path` | `false` | `string` | | Specify 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-path` | `false` | `string` | | Specify 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-cache` | `false` | `boolean` | `false` | Specify 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](https://github.com/akiojin/setup-unity-cache-github-action/blob/main/LICENSE).